lib/generators/cms/admin_area_generator.rb in honey-cms-0.3.8 vs lib/generators/cms/admin_area_generator.rb in honey-cms-0.3.9
- old
+ new
@@ -17,10 +17,10 @@
CMS::Configuration.scoped_types(options).each do |type|
@name = (@type = type).model_name
template 'type_controller.rb', "app/controllers/cms/#{@name.collection}_controller.rb"
template 'type_model.rb', "app/models/cms/#{@name.element}.rb"
- %w(index new show edit).each do |view|
+ %w(index new show edit _fields).each do |view|
template "views/#{view}.html.haml", "app/views/cms/#{@name.collection}/#{view}.html.haml"
end
end
end
end