Module: LazyFixtures
- Defined in:
- lib/lazy_fixtures.rb,
lib/lazy_fixtures/version.rb,
lib/lazy_fixtures/generator.rb,
lib/lazy_fixtures/object_helper.rb,
lib/lazy_fixtures/factory_girl/factory_girl.rb,
lib/lazy_fixtures/factory_girl/file_manager.rb,
lib/lazy_fixtures/factory_girl/value_mapper.rb,
lib/lazy_fixtures/factory_girl/attributes_manager.rb,
lib/lazy_fixtures/factory_girl/association_manager.rb
Defined Under Namespace
Modules: FactoryGirl, ObjectHelper Classes: Configuration, Generator
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
11 12 13 |
# File 'lib/lazy_fixtures.rb', line 11 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
14 15 16 17 |
# File 'lib/lazy_fixtures.rb', line 14 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.generate(object, options = {}) ⇒ Object
28 29 30 |
# File 'lib/lazy_fixtures.rb', line 28 def self.generate(object, = {}) LazyFixtures::Generator.new(object, ).generate('FactoryGirl') end |