class Bodega::Generators::ProductGenerator

Public Instance Methods

copy_migration() click to toggle source
# File lib/generators/bodega/product/product_generator.rb, line 14
def copy_migration
  migration_template "migration.rb", "db/migrate/create_#{product_name.tableize}"
end
copy_model() click to toggle source
# File lib/generators/bodega/product/product_generator.rb, line 18
def copy_model
  template "model.rb", "app/models/#{product_name.tableize.singularize}"
end