123456789_123456789_123456789_123456789_123456789_

Module: ActiveModel

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: activemodel/lib/active_model.rb,
activemodel/lib/active_model/attribute_methods.rb,
activemodel/lib/active_model/callbacks.rb,
activemodel/lib/active_model/conversion.rb,
activemodel/lib/active_model/dirty.rb,
activemodel/lib/active_model/errors.rb,
activemodel/lib/active_model/forbidden_attributes_protection.rb,
activemodel/lib/active_model/gem_version.rb,
activemodel/lib/active_model/lint.rb,
activemodel/lib/active_model/model.rb,
activemodel/lib/active_model/naming.rb,
activemodel/lib/active_model/railtie.rb,
activemodel/lib/active_model/secure_password.rb,
activemodel/lib/active_model/serialization.rb,
activemodel/lib/active_model/test_case.rb,
activemodel/lib/active_model/translation.rb,
activemodel/lib/active_model/validations.rb,
activemodel/lib/active_model/validator.rb,
activemodel/lib/active_model/version.rb,
activemodel/lib/active_model/serializers/json.rb,
activemodel/lib/active_model/serializers/xml.rb,
activemodel/lib/active_model/validations/absence.rb,
activemodel/lib/active_model/validations/acceptance.rb,
activemodel/lib/active_model/validations/callbacks.rb,
activemodel/lib/active_model/validations/clusivity.rb,
activemodel/lib/active_model/validations/confirmation.rb,
activemodel/lib/active_model/validations/exclusion.rb,
activemodel/lib/active_model/validations/format.rb,
activemodel/lib/active_model/validations/inclusion.rb,
activemodel/lib/active_model/validations/length.rb,
activemodel/lib/active_model/validations/numericality.rb,
activemodel/lib/active_model/validations/presence.rb,
activemodel/lib/active_model/validations/validates.rb,
activemodel/lib/active_model/validations/with.rb

Class Method Summary

  • .eager_load!
  • .gem_version

    Returns the version of the currently loaded Active Model as a Gem::Version

  • .version

    Returns the version of the currently loaded ActiveModel as a Gem::Version

::ActiveSupport::Autoload - Extended

Class Method Details

.eager_load!

[ GitHub ]

  
# File 'activemodel/lib/active_model.rb', line 63

def self.eager_load!
  super
  ActiveModel::Serializers.eager_load!
end

.gem_version

Returns the version of the currently loaded Active Model as a Gem::Version

[ GitHub ]

  
# File 'activemodel/lib/active_model/gem_version.rb', line 3

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.version

Returns the version of the currently loaded ActiveModel as a Gem::Version

[ GitHub ]

  
# File 'activemodel/lib/active_model/version.rb', line 5

def self.version
  gem_version
end