lib/generators/administrate/views/views_generator.rb in administrate-0.1.2 vs lib/generators/administrate/views/views_generator.rb in administrate-0.1.3

- old
+ new

@@ -2,13 +2,13 @@ module Administrate module Generators class ViewsGenerator < Administrate::ViewGenerator def copy_templates - Rails::Generators.invoke("administrate:views:index", [resource_path]) - Rails::Generators.invoke("administrate:views:show", [resource_path]) - Rails::Generators.invoke("administrate:views:new", [resource_path]) - Rails::Generators.invoke("administrate:views:edit", [resource_path]) + 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) end end end end