app/views/madmin/fields/belongs_to/_index.html.erb in madmin-0.1.0 vs app/views/madmin/fields/belongs_to/_index.html.erb in madmin-0.1.1
- old
+ new
@@ -1,7 +1,2 @@
-<%=
- link_to field.association_value_for(resource),
- resource_path(
- field.association_slug,
- field.association_id_for(resource)
- )
-%>
+<% object = field.value(record) %>
+<%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object) %>