lib/administrate/view_generator.rb in administrate-0.3.0 vs lib/administrate/view_generator.rb in administrate-0.4.0

- old
+ new

@@ -22,9 +22,15 @@ "app/views/admin/#{resource_path}/#{template_file}", ) end def resource_path - args.first.try(:underscore).try(:pluralize) || "application" + args.first.try(:underscore).try(:pluralize) || BaseResourcePath.new + end + + class BaseResourcePath + def to_s + "application" + end end end end