Class: Invoicing::Generators::TaxRateGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_migration_fileObject


8
9
10
# File 'lib/rails/generators/invoicing/tax_rate/tax_rate_generator.rb', line 8

def copy_migration_file
  migration_template "migration.rb", "db/migrate/create_invoicing_tax_rates.rb"
end

#copy_modelObject


12
13
14
# File 'lib/rails/generators/invoicing/tax_rate/tax_rate_generator.rb', line 12

def copy_model
  template "model.rb", "app/models/invoicing_tax_rate.rb"
end