Module: ActiveModel
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/active_model/test_case.rb,
lib/active_model.rb,
lib/active_model/lint.rb,
lib/active_model/dirty.rb,
lib/active_model/model.rb,
lib/active_model/errors.rb,
lib/active_model/naming.rb,
lib/active_model/railtie.rb,
lib/active_model/version.rb,
lib/active_model/callbacks.rb,
lib/active_model/validator.rb,
lib/active_model/conversion.rb,
lib/active_model/translation.rb,
lib/active_model/validations.rb,
lib/active_model/serialization.rb,
lib/active_model/secure_password.rb,
lib/active_model/serializers/xml.rb,
lib/active_model/serializers/json.rb,
lib/active_model/validations/with.rb,
lib/active_model/attribute_methods.rb,
lib/active_model/validations/format.rb,
lib/active_model/validations/length.rb,
lib/active_model/validations/absence.rb,
lib/active_model/validations/presence.rb,
lib/active_model/validations/callbacks.rb,
lib/active_model/validations/clusivity.rb,
lib/active_model/validations/exclusion.rb,
lib/active_model/validations/inclusion.rb,
lib/active_model/validations/validates.rb,
lib/active_model/validations/acceptance.rb,
lib/active_model/validations/confirmation.rb,
lib/active_model/validations/numericality.rb,
lib/active_model/forbidden_attributes_protection.rb,
lib/active_model/deprecated_mass_assignment_security.rb
Overview
:nodoc:
Defined Under Namespace
Modules: AttributeMethods, Callbacks, Conversion, DeprecatedMassAssignmentSecurity, 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
- .eager_load! ⇒ Object
-
.version ⇒ Object
Returns the version of the currently loaded ActiveModel as a Gem::Version.
Class Method Details
.eager_load! ⇒ Object
64 65 66 67 |
# File 'lib/active_model.rb', line 64 def self.eager_load! super ActiveModel::Serializers.eager_load! end |
.version ⇒ Object
Returns the version of the currently loaded ActiveModel as a Gem::Version
3 4 5 |
# File 'lib/active_model/version.rb', line 3 def self.version Gem::Version.new "4.0.7" end |