Module: ActiveEntity
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/active_entity/base.rb,
lib/active_entity.rb,
lib/active_entity/core.rb,
lib/active_entity/enum.rb,
lib/active_entity/type.rb,
lib/active_entity/store.rb,
lib/active_entity/errors.rb,
lib/active_entity/railtie.rb,
lib/active_entity/version.rb,
lib/active_entity/callbacks.rb,
lib/active_entity/type/date.rb,
lib/active_entity/type/json.rb,
lib/active_entity/type/text.rb,
lib/active_entity/type/time.rb,
lib/active_entity/attributes.rb,
lib/active_entity/reflection.rb,
lib/active_entity/coders/json.rb,
lib/active_entity/gem_version.rb,
lib/active_entity/inheritance.rb,
lib/active_entity/integration.rb,
lib/active_entity/persistence.rb,
lib/active_entity/translation.rb,
lib/active_entity/validations.rb,
lib/active_entity/aggregations.rb,
lib/active_entity/associations.rb,
lib/active_entity/model_schema.rb,
lib/active_entity/serialization.rb,
lib/active_entity/type/registry.rb,
lib/active_entity/type/date_time.rb,
lib/active_entity/type/serialized.rb,
lib/active_entity/attribute_methods.rb,
lib/active_entity/nested_attributes.rb,
lib/active_entity/coders/yaml_column.rb,
lib/active_entity/validations/length.rb,
lib/active_entity/validations/subset.rb,
lib/active_entity/readonly_attributes.rb,
lib/active_entity/validations/absence.rb,
lib/active_entity/attribute_assignment.rb,
lib/active_entity/attribute_decorators.rb,
lib/active_entity/type/modifiers/array.rb,
lib/active_entity/validations/presence.rb,
lib/active_entity/type/unsigned_integer.rb,
lib/active_entity/attribute_methods/read.rb,
lib/active_entity/type/internal/timezone.rb,
lib/active_entity/validations/associated.rb,
lib/active_entity/attribute_methods/dirty.rb,
lib/active_entity/attribute_methods/query.rb,
lib/active_entity/attribute_methods/write.rb,
lib/active_entity/validate_embeds_association.rb,
lib/active_entity/attribute_methods/primary_key.rb,
lib/active_entity/associations/embeds/association.rb,
lib/active_entity/attribute_methods/serialization.rb,
lib/active_entity/validations/uniqueness_in_embeds.rb,
lib/active_entity/attribute_methods/before_type_cast.rb,
lib/active_entity/type/modifiers/array_without_blank.rb,
lib/active_entity/associations/embeds/collection_proxy.rb,
lib/active_entity/attribute_methods/time_zone_conversion.rb,
lib/active_entity/validations/uniqueness_on_active_record.rb,
lib/active_entity/associations/embeds/singular_association.rb,
lib/active_entity/associations/embeds/collection_association.rb,
lib/active_entity/associations/embeds/embeds_one_association.rb,
lib/active_entity/associations/embeds/embedded_in_association.rb,
lib/active_entity/associations/embeds/embeds_many_association.rb
Overview
:nodoc:
Defined Under Namespace
Modules: AMAttributeMethods, Aggregations, Associations, AttributeAssignment, AttributeDecorators, AttributeMethods, Attributes, Callbacks, Coders, Core, Enum, Inheritance, Integration, ModelSchema, NestedAttributes, Persistence, ReadonlyAttributes, Reflection, Serialization, Store, Translation, Type, VERSION, ValidateEmbedsAssociation, Validations Classes: ActiveEntityError, AssociationNotFoundError, AssociationTypeMismatch, AttributeAssignmentError, Base, ConfigurationError, DangerousAttributeError, InverseOfAssociationNotFoundError, MultiparameterAssignmentErrors, Railtie, SerializationTypeMismatch
Constant Summary collapse
- UnknownAttributeError =
Raised when unknown attributes are supplied via mass assignment.
ActiveModel::UnknownAttributeError
Class Method Summary collapse
- .eager_load! ⇒ Object
-
.gem_version ⇒ Object
Returns the version of the currently loaded Active Entity as a
Gem::Version
. -
.version ⇒ Object
Returns the version of the currently loaded ActiveEntity as a
Gem::Version
.
Class Method Details
.eager_load! ⇒ Object
86 87 88 89 90 91 |
# File 'lib/active_entity.rb', line 86 def self.eager_load! super ActiveEntity::Associations.eager_load! ActiveEntity::AttributeMethods.eager_load! end |
.gem_version ⇒ Object
Returns the version of the currently loaded Active Entity as a Gem::Version
5 6 7 |
# File 'lib/active_entity/gem_version.rb', line 5 def self.gem_version Gem::Version.new VERSION::STRING end |
.version ⇒ Object
Returns the version of the currently loaded ActiveEntity as a Gem::Version
7 8 9 |
# File 'lib/active_entity/version.rb', line 7 def self.version gem_version end |