Class: Invoicing::Generators::LineItemGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/invoicing/line_item/line_item_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_migrationsObject


8
9
10
# File 'lib/rails/generators/invoicing/line_item/line_item_generator.rb', line 8

def copy_migrations
  migration_template "migration.rb", "db/migrate/create_invoicing_line_items.rb"
end

#copy_modelsObject


12
13
14
# File 'lib/rails/generators/invoicing/line_item/line_item_generator.rb', line 12

def copy_models
  template "model.rb", "app/models/invoicing_line_item.rb"
end