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/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
-
.version ⇒ Object
Returns the version of the currently loaded ActiveModel as a Gem::Version.
Instance Method Summary collapse
Methods included from ActiveSupport::Autoload
autoload, autoload_at, autoload_under, autoloads, eager_autoload, extended
Class Method Details
.version ⇒ Object
Returns the version of the currently loaded ActiveModel as a Gem::Version
3 4 5 |
# File 'activemodel/lib/active_model/version.rb', line 3 def self.version Gem::Version.new "4.1.0.beta" end |
Instance Method Details
#eager_load! ⇒ Object
62 63 64 65 |
# File 'activemodel/lib/active_model.rb', line 62 def eager_load! super ActiveModel::Serializer.eager_load! end |