lib/generators/administrate/views/views_generator.rb in administrate-0.14.0 vs lib/generators/administrate/views/views_generator.rb in administrate-0.15.0
- old
+ new
@@ -2,13 +2,14 @@
module Administrate
module Generators
class ViewsGenerator < Administrate::ViewGenerator
def copy_templates
- call_generator("administrate:views:index", resource_path)
- call_generator("administrate:views:show", resource_path)
- call_generator("administrate:views:new", resource_path)
- call_generator("administrate:views:edit", resource_path)
+ view = "administrate:views:"
+ call_generator("#{view}index", resource_path, "--namespace", namespace)
+ call_generator("#{view}show", resource_path, "--namespace", namespace)
+ call_generator("#{view}new", resource_path, "--namespace", namespace)
+ call_generator("#{view}edit", resource_path, "--namespace", namespace)
end
end
end
end