Class: Permissify::Generators::ProductGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/permissify/product/product_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_productObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/permissify/product/product_generator.rb', line 6

def generate_product
  
  copy_file "product.rb",   "app/models/product.rb"
  copy_file "products.rb",  "app/models/system_fixtures/products.rb"
  copy_file "controller.rb","app/controllers/products_controller.rb"
  copy_file "helper.rb",    "app/helpers/products_helper.rb"
  
  directory "interface",    "app/models/permissified_products_interface"
  directory "views",        "app/views/products"
  
end