Class: Embryo::ModelGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Embryo::ModelGenerator
- Defined in:
- lib/generators/embryo/model.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
5 6 7 8 9 |
# File 'lib/generators/embryo/model.rb', line 5 def install generate "rails:model", "#{ARGV.join ' '} --no-test-framework" create_file "spec/factories/#{file_path}.rb", factory_data create_file "spec/models/#{file_path}_spec.rb", spec_data end |