Commit 4df7dc12 by ivan Lan

Add series & snapshot to model generator

parent 18bdb58e
......@@ -26,6 +26,8 @@ module Shotengai
def copy_models
@product_name, @order_name, @catalog_name = options.values_at(:product, :order, :catalog)
template 'product.rb', "app/models/#{@product_name.underscore}.rb"
template 'product_series.rb', "app/models/#{@product_name.underscore}_series.rb"
template 'product_snapshot.rb', "app/models/#{@product_name.underscore}_snapshot.rb"
template 'order.rb', "app/models/#{@order_name.underscore}.rb"
template 'catalog.rb', "app/models/#{@catalog_name.underscore}.rb"
end
......
class <%= @product_name %>Series < Shotengai::Series
end
class <%= @product_name %>Snapshot < Shotengai::Snapshot
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment