Module: ActiveModel

Extended by:
ActiveSupport::Autoload
Defined in:
activemodel/lib/active_model/test_case.rb,
activemodel/lib/active_model.rb,
activemodel/lib/active_model/lint.rb,
activemodel/lib/active_model/dirty.rb,
activemodel/lib/active_model/model.rb,
activemodel/lib/active_model/naming.rb,
activemodel/lib/active_model/errors.rb,
activemodel/lib/active_model/railtie.rb,
activemodel/lib/active_model/version.rb,
activemodel/lib/active_model/callbacks.rb,
activemodel/lib/active_model/validator.rb,
activemodel/lib/active_model/conversion.rb,
activemodel/lib/active_model/gem_version.rb,
activemodel/lib/active_model/validations.rb,
activemodel/lib/active_model/translation.rb,
activemodel/lib/active_model/serialization.rb,
activemodel/lib/active_model/secure_password.rb,
activemodel/lib/active_model/serializers/xml.rb,
activemodel/lib/active_model/validations/with.rb,
activemodel/lib/active_model/serializers/json.rb,
activemodel/lib/active_model/attribute_methods.rb,
activemodel/lib/active_model/validations/format.rb,
activemodel/lib/active_model/validations/length.rb,
activemodel/lib/active_model/validations/absence.rb,
activemodel/lib/active_model/validations/presence.rb,
activemodel/lib/active_model/validations/callbacks.rb,
activemodel/lib/active_model/validations/validates.rb,
activemodel/lib/active_model/validations/inclusion.rb,
activemodel/lib/active_model/validations/exclusion.rb,
activemodel/lib/active_model/validations/clusivity.rb,
activemodel/lib/active_model/validations/acceptance.rb,
activemodel/lib/active_model/validations/confirmation.rb,
activemodel/lib/active_model/validations/numericality.rb,
activemodel/lib/active_model/forbidden_attributes_protection.rb

Overview

:nodoc:

Defined Under Namespace

Modules: AttributeMethods, Callbacks, Conversion, Dirty, ForbiddenAttributesProtection, Lint, Model, Naming, SecurePassword, Serialization, Serializers, Translation, VERSION, Validations Classes: BlockValidator, EachValidator, Errors, ForbiddenAttributesError, MissingAttributeError, Name, Railtie, StrictValidationFailed, TestCase, Validator

Class Method Summary collapse

Methods included from ActiveSupport::Autoload

autoload, autoload_at, autoload_under, autoloads, eager_autoload, eager_load!, extended

Class Method Details

.eager_load!Object



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

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

.gem_versionObject

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



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

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

.versionObject

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



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

def self.version
  gem_version
end