Module: ActiveFields

Extended by:
ActiveSupport::Autoload
Defined in:
lib/active_fields.rb,
lib/active_fields/config.rb,
lib/active_fields/engine.rb,
lib/active_fields/version.rb,
app/models/active_fields/value.rb,
app/models/active_fields/field/base.rb,
app/models/active_fields/field/date.rb,
app/models/active_fields/field/enum.rb,
app/models/active_fields/field/text.rb,
lib/active_fields/has_active_fields.rb,
lib/active_fields/casters/base_caster.rb,
lib/active_fields/casters/date_caster.rb,
lib/active_fields/casters/enum_caster.rb,
lib/active_fields/casters/text_caster.rb,
lib/active_fields/customizable_config.rb,
app/models/active_fields/field/boolean.rb,
app/models/active_fields/field/decimal.rb,
app/models/active_fields/field/integer.rb,
app/models/active_fields/field/date_time.rb,
lib/active_fields/casters/boolean_caster.rb,
lib/active_fields/casters/decimal_caster.rb,
lib/active_fields/casters/integer_caster.rb,
app/models/active_fields/field/date_array.rb,
app/models/active_fields/field/enum_array.rb,
app/models/active_fields/field/text_array.rb,
lib/active_fields/casters/date_time_caster.rb,
app/models/active_fields/application_record.rb,
lib/active_fields/casters/date_array_caster.rb,
lib/active_fields/casters/enum_array_caster.rb,
lib/active_fields/casters/text_array_caster.rb,
lib/active_fields/validators/base_validator.rb,
lib/active_fields/validators/date_validator.rb,
lib/active_fields/validators/enum_validator.rb,
lib/active_fields/validators/text_validator.rb,
app/models/active_fields/field/decimal_array.rb,
app/models/active_fields/field/integer_array.rb,
app/models/active_fields/field/date_time_array.rb,
lib/active_fields/casters/decimal_array_caster.rb,
lib/active_fields/casters/integer_array_caster.rb,
lib/active_fields/validators/boolean_validator.rb,
lib/active_fields/validators/decimal_validator.rb,
lib/active_fields/validators/integer_validator.rb,
app/models/concerns/active_fields/field_concern.rb,
app/models/concerns/active_fields/value_concern.rb,
lib/active_fields/casters/date_time_array_caster.rb,
lib/active_fields/validators/date_time_validator.rb,
lib/active_fields/validators/date_array_validator.rb,
lib/active_fields/validators/enum_array_validator.rb,
lib/active_fields/validators/text_array_validator.rb,
lib/active_fields/validators/decimal_array_validator.rb,
lib/active_fields/validators/integer_array_validator.rb,
app/models/concerns/active_fields/field_array_concern.rb,
app/models/concerns/active_fields/customizable_concern.rb,
lib/active_fields/validators/date_time_array_validator.rb,
lib/generators/active_fields/install/install_generator.rb,
lib/generators/active_fields/scaffold/scaffold_generator.rb

Defined Under Namespace

Modules: Casters, CustomizableConcern, Field, FieldArrayConcern, FieldConcern, Generators, HasActiveFields, Validators, ValueConcern Classes: ApplicationRecord, Config, CustomizableConfig, Engine, Value

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.config {|Config.instance| ... } ⇒ Object Also known as: configure

Yields:



66
67
68
69
# File 'lib/active_fields.rb', line 66

def config
  yield Config.instance if block_given?
  Config.instance
end

.eager_load!Object



10
11
12
13
14
# File 'lib/active_fields.rb', line 10

def eager_load!
  super
  Casters.eager_load!
  Validators.eager_load!
end