Module: Seedie

Defined in:
lib/seedie.rb,
lib/seedie/seeder.rb,
lib/seedie/railtie.rb,
lib/seedie/version.rb,
lib/seedie/model_fields.rb,
lib/seedie/model_seeder.rb,
lib/seedie/configuration.rb,
lib/seedie/model/creator.rb,
lib/seedie/field_values_set.rb,
lib/seedie/model/id_generator.rb,
lib/seedie/model/model_sorter.rb,
lib/seedie/associations/has_one.rb,
lib/seedie/reporters/reportable.rb,
lib/seedie/associations/has_many.rb,
lib/seedie/associations/belongs_to.rb,
lib/seedie/field_values/fake_value.rb,
lib/seedie/reporters/base_reporter.rb,
lib/seedie/field_values/custom_value.rb,
lib/seedie/field_values/faker_builder.rb,
lib/seedie/reporters/console_reporter.rb,
lib/generators/seedie/install_generator.rb,
lib/seedie/associations/base_association.rb,
lib/seedie/polymorphic_association_helper.rb,
lib/seedie/associations/has_and_belongs_to_many.rb,
lib/seedie/field_values/value_template_validator.rb

Defined Under Namespace

Modules: Associations, FieldValues, Generators, Model, PolymorphicAssociationHelper, Reporters Classes: ConfigFileNotFound, Configuration, CustomFieldNotEnoughValuesError, Error, FieldValuesSet, InvalidAssociationConfigError, InvalidCustomFieldKeysError, InvalidCustomFieldOptionsError, InvalidCustomFieldValuesError, InvalidFakerMethodError, ModelFields, ModelSeeder, Railtie, Seeder, UnknownColumnTypeError

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.configurationObject



28
29
30
# File 'lib/seedie.rb', line 28

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



24
25
26
# File 'lib/seedie.rb', line 24

def configure
  yield configuration if block_given?
end

.eager_load!Object



32
33
34
# File 'lib/seedie.rb', line 32

def eager_load!
  @loader.eager_load
end