lib/administrate/page/base.rb in administrate-0.7.0 vs lib/administrate/page/base.rb in administrate-0.8.0

- old
+ new

@@ -18,10 +18,10 @@ protected def attribute_field(dashboard, resource, attribute_name, page) value = get_attribute_value(resource, attribute_name) field = dashboard.attribute_type_for(attribute_name) - field.new(attribute_name, value, page) + field.new(attribute_name, value, page, resource: resource) end def get_attribute_value(resource, attribute_name) resource.public_send(attribute_name) rescue NameError