Class: FactoryGirl::Generators::ModelGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- FactoryGirl::Generators::ModelGenerator
- Defined in:
- lib/generators/factory_girl/model/model_generator.rb
Instance Method Summary collapse
Methods inherited from Base
#explicit_class_option, source_root
Instance Method Details
#create_fixture_file ⇒ Object
10 11 12 13 |
# File 'lib/generators/factory_girl/model/model_generator.rb', line 10 def create_fixture_file filename = [table_name, filename_suffix].compact.join('_') template 'fixtures.erb', File.join([:dir], "#{filename}.rb") end |