Module: ActiveData

Defined in:
lib/active_data.rb,
lib/active_data/base.rb,
lib/active_data/model.rb,
lib/active_data/config.rb,
lib/active_data/errors.rb,
lib/active_data/railtie.rb,
lib/active_data/version.rb,
lib/active_data/model/dirty.rb,
lib/active_data/model/scopes.rb,
lib/active_data/model/primary.rb,
lib/active_data/model/callbacks.rb,
lib/active_data/model/lifecycle.rb,
lib/active_data/undefined_class.rb,
lib/active_data/model/attributes.rb,
lib/active_data/model/conventions.rb,
lib/active_data/model/persistence.rb,
lib/active_data/model/validations.rb,
lib/active_data/model/associations.rb,
lib/active_data/model/localization.rb,
lib/active_data/model/representation.rb,
lib/active_data/model/attributes/base.rb,
lib/active_data/model/associations/base.rb,
lib/active_data/model/validations/nested.rb,
lib/active_data/active_record/associations.rb,
lib/active_data/model/attributes/attribute.rb,
lib/active_data/model/attributes/localized.rb,
lib/active_data/model/attributes/collection.rb,
lib/active_data/model/attributes/dictionary.rb,
lib/active_data/model/attributes/represents.rb,
lib/active_data/model/validations/associated.rb,
lib/active_data/model/associations/embeds_any.rb,
lib/active_data/model/associations/embeds_one.rb,
lib/active_data/model/associations/embeds_many.rb,
lib/active_data/model/associations/validations.rb,
lib/active_data/model/attributes/reference_one.rb,
lib/active_data/active_record/nested_attributes.rb,
lib/active_data/model/attributes/reference_many.rb,
lib/active_data/model/associations/references_any.rb,
lib/active_data/model/associations/references_one.rb,
lib/active_data/model/attributes/reflections/base.rb,
lib/active_data/model/associations/references_many.rb,
lib/active_data/model/associations/collection/proxy.rb,
lib/active_data/model/associations/reflections/base.rb,
lib/active_data/model/associations/nested_attributes.rb,
lib/active_data/model/associations/collection/embedded.rb,
lib/active_data/model/attributes/reflections/attribute.rb,
lib/active_data/model/attributes/reflections/localized.rb,
lib/active_data/model/associations/reflections/singular.rb,
lib/active_data/model/attributes/reflections/collection.rb,
lib/active_data/model/attributes/reflections/dictionary.rb,
lib/active_data/model/attributes/reflections/represents.rb,
lib/active_data/model/associations/reflections/embeds_any.rb,
lib/active_data/model/associations/reflections/embeds_one.rb,
lib/active_data/model/associations/reflections/embeds_many.rb,
lib/active_data/model/attributes/reflections/reference_one.rb,
lib/active_data/model/attributes/reflections/reference_many.rb,
lib/active_data/model/associations/persistence_adapters/base.rb,
lib/active_data/model/associations/reflections/references_any.rb,
lib/active_data/model/associations/reflections/references_one.rb,
lib/active_data/model/associations/reflections/references_many.rb,
lib/active_data/model/associations/persistence_adapters/active_record.rb,
lib/active_data/model/associations/persistence_adapters/active_record/referenced_proxy.rb

Defined Under Namespace

Modules: ActiveRecord, Model Classes: ActiveDataError, AssociationChangesNotApplied, AssociationTypeMismatch, Base, Config, NormalizerMissing, NotFound, ObjectNotDestroyed, ObjectNotFound, ObjectNotSaved, PersistenceAdapterMissing, Railtie, TooManyObjects, TypecasterMissing, UndefinedClass, UndefinedPrimaryAttribute, UndestroyableObject, UnsavableObject, ValidationError

Constant Summary collapse

BOOLEAN_MAPPING =
{
  1 => true,
  0 => false,
  '1' => true,
  '0' => false,
  't' => true,
  'f' => false,
  'T' => true,
  'F' => false,
  true => true,
  false => false,
  'true' => true,
  'false' => false,
  'TRUE' => true,
  'FALSE' => false,
  'y' => true,
  'n' => false,
  'yes' => true,
  'no' => false
}.freeze
VERSION =
'1.2.0'.freeze
UNDEFINED =
UndefinedClass.instance.freeze

Class Method Summary collapse

Class Method Details

.configObject



42
43
44
# File 'lib/active_data.rb', line 42

def self.config
  ActiveData::Config.instance
end