diff --git a/lib/administrate/view_generator.rb b/lib/administrate/view_generator.rb index 8f49299061..c1fa550c13 100644 --- a/lib/administrate/view_generator.rb +++ b/lib/administrate/view_generator.rb @@ -5,8 +5,6 @@ module Administrate class ViewGenerator < Rails::Generators::Base include Administrate::GeneratorHelpers - private - def self.template_source_path File.expand_path( "../../../app/views/administrate/application", @@ -14,6 +12,8 @@ def self.template_source_path ) end + private + def copy_resource_template(template_name) template_file = "#{template_name}.html.erb"