lib/administrate/page/base.rb in administrate-0.10.0 vs lib/administrate/page/base.rb in administrate-0.11.0
- old
+ new
@@ -13,9 +13,13 @@
def resource_path
@resource_path ||= resource_name.gsub("/", "_")
end
+ def association_includes
+ dashboard.try(:association_includes) || []
+ end
+
protected
def attribute_field(dashboard, resource, attribute_name, page)
value = get_attribute_value(resource, attribute_name)
field = dashboard.attribute_type_for(attribute_name)