app/views/madmin/fields/belongs_to/_show.html.erb in madmin-1.0.0 vs app/views/madmin/fields/belongs_to/_show.html.erb in madmin-1.0.1

- old
+ new

@@ -1,2 +1,3 @@ -<% object = field.value(record) %> -<%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object) %> +<% if (object = field.value(record)) %> + <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object) %> +<% end %>