Module: ActiveModel

Extended by:
ActiveSupport::Autoload
Defined in:
lib/active_model.rb,
lib/active_model/api.rb,
lib/active_model/lint.rb,
lib/active_model/type.rb,
lib/active_model/dirty.rb,
lib/active_model/error.rb,
lib/active_model/model.rb,
lib/active_model/access.rb,
lib/active_model/errors.rb,
lib/active_model/naming.rb,
lib/active_model/railtie.rb,
lib/active_model/version.rb,
lib/active_model/attribute.rb,
lib/active_model/callbacks.rb,
lib/active_model/type/date.rb,
lib/active_model/type/time.rb,
lib/active_model/validator.rb,
lib/active_model/attributes.rb,
lib/active_model/conversion.rb,
lib/active_model/deprecator.rb,
lib/active_model/type/float.rb,
lib/active_model/type/value.rb,
lib/active_model/gem_version.rb,
lib/active_model/translation.rb,
lib/active_model/type/binary.rb,
lib/active_model/type/string.rb,
lib/active_model/validations.rb,
lib/active_model/nested_error.rb,
lib/active_model/type/boolean.rb,
lib/active_model/type/decimal.rb,
lib/active_model/type/integer.rb,
lib/active_model/attribute_set.rb,
lib/active_model/serialization.rb,
lib/active_model/type/registry.rb,
lib/active_model/type/date_time.rb,
lib/active_model/secure_password.rb,
lib/active_model/serializers/json.rb,
lib/active_model/type/big_integer.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/attribute_assignment.rb,
lib/active_model/type/helpers/mutable.rb,
lib/active_model/type/helpers/numeric.rb,
lib/active_model/validations/presence.rb,
lib/active_model/attribute_set/builder.rb,
lib/active_model/type/helpers/timezone.rb,
lib/active_model/type/immutable_string.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/attribute_registration.rb,
lib/active_model/validations/acceptance.rb,
lib/active_model/validations/comparison.rb,
lib/active_model/type/helpers/time_value.rb,
lib/active_model/validations/confirmation.rb,
lib/active_model/validations/numericality.rb,
lib/active_model/type/serialize_cast_value.rb,
lib/active_model/validations/comparability.rb,
lib/active_model/validations/resolve_value.rb,
lib/active_model/attribute_mutation_tracker.rb,
lib/active_model/attribute_set/yaml_encoder.rb,
lib/active_model/validations/helper_methods.rb,
lib/active_model/attribute/user_provided_default.rb,
lib/active_model/forbidden_attributes_protection.rb,
lib/active_model/type/helpers/accepts_multiparameter_time.rb

Overview

:include: ../README.rdoc

Defined Under Namespace

Modules: API, Access, AttributeAssignment, AttributeMethods, AttributeRegistration, Attributes, Callbacks, Conversion, Dirty, ForbiddenAttributesProtection, Lint, Model, Naming, SecurePassword, Serialization, Serializers, Translation, Type, VERSION, Validations Classes: Attribute, AttributeMutationTracker, AttributeSet, BlockValidator, EachValidator, Error, Errors, ForbiddenAttributesError, ForcedMutationTracker, LazyAttributeHash, LazyAttributeSet, MissingAttributeError, Name, NestedError, NullMutationTracker, Railtie, RangeError, StrictValidationFailed, UnknownAttributeError, ValidationContext, ValidationError, Validator

Class Method Summary collapse

Class Method Details

.deprecatorObject

:nodoc:



4
5
6
# File 'lib/active_model/deprecator.rb', line 4

def self.deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

.eager_load!Object



76
77
78
79
# File 'lib/active_model.rb', line 76

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

.gem_versionObject

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



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

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

.versionObject

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



7
8
9
# File 'lib/active_model/version.rb', line 7

def self.version
  gem_version
end