lib/administrate/page/base.rb in administrate-0.20.1 vs lib/administrate/page/base.rb in administrate-1.0.0.beta1
- old
+ new
@@ -10,10 +10,10 @@
@resource_name ||=
dashboard.class.to_s.scan(/(.+)Dashboard/).first.first.underscore
end
def resource_path
- @resource_path ||= resource_name.gsub("/", "_")
+ @resource_path ||= resource_name.tr("/", "_")
end
def collection_includes
dashboard.try(:collection_includes) || []
end