Class: Fabricators::Generators::ModelGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/fabricators/model/model_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_fixture_fileObject



9
10
11
# File 'lib/generators/fabricators/model/model_generator.rb', line 9

def create_fixture_file
  template 'fabricator.rb', Fabricators.path.join("#{table_name}.rb")
end