lib/administrate/page/base.rb in administrate-0.5.0 vs lib/administrate/page/base.rb in administrate-0.6.0

- old
+ new

@@ -9,9 +9,13 @@ def resource_name @resource_name ||= dashboard.class.to_s.scan(/(.+)Dashboard/).first.first.underscore end + def resource_path + @resource_path ||= resource_name.gsub("/", "_") + end + protected def attribute_field(dashboard, resource, attribute_name, page) value = get_attribute_value(resource, attribute_name) field = dashboard.attribute_type_for(attribute_name)