lib/administrate/view_generator.rb in administrate-0.20.1 vs lib/administrate/view_generator.rb in administrate-1.0.0.beta1
- old
+ new
@@ -7,17 +7,17 @@
include Administrate::GeneratorHelpers
class_option(
:namespace,
type: :string,
desc: "Namespace where the admin dashboards live",
- default: "admin",
+ default: "admin"
)
def self.template_source_path
File.expand_path(
"../../../app/views/administrate/application",
- __FILE__,
+ __FILE__
)
end
private
@@ -28,10 +28,10 @@
def copy_resource_template(template_name)
template_file = "#{template_name}.html.erb"
copy_file(
template_file,
- "app/views/#{namespace}/#{resource_path}/#{template_file}",
+ "app/views/#{namespace}/#{resource_path}/#{template_file}"
)
end
def resource_path
args.first.try(:underscore).try(:pluralize) || BaseResourcePath.new