lib/generators/loadbehind/loadbehind_generator.rb in casey_jones-0.0.102 vs lib/generators/loadbehind/loadbehind_generator.rb in casey_jones-0.0.103
- old
+ new
@@ -21,11 +21,11 @@
end
self.action_name = "show"
template "view.js.haml", "#{view_dir}/update.js.haml"
["edit", "new"].each do |act|
- self.action_name = act
- template "edit.js.haml", "#{view_dir}/#{action_name}.js.haml"
+ self.action_name = 'form'
+ template "edit.js.haml", "#{view_dir}/#{act}.js.haml"
end
["destroy.js", "_errors.html"].each do |file|
template "#{file}.haml", "#{view_dir}/#{file}.haml"
end