lib/generators/loadbehind/loadbehind_generator.rb in casey_jones-0.0.103 vs lib/generators/loadbehind/loadbehind_generator.rb in casey_jones-0.0.104

- old
+ new

@@ -13,15 +13,16 @@ IMAGES.each do |image| copy_file "images/#{image}.png", "public/images/growl/#{image}.png" end - ["index", "show", "create"].each do |act| + ["index", "show"].each do |act| self.action_name = act template "view.js.haml", "#{view_dir}/#{action_name}.js.haml" end self.action_name = "show" template "view.js.haml", "#{view_dir}/update.js.haml" + template "view.js.haml", "#{view_dir}/create.js.haml" ["edit", "new"].each do |act| self.action_name = 'form' template "edit.js.haml", "#{view_dir}/#{act}.js.haml" end