app/views/fields/belongs_to/_index.html.erb in administrate-0.4.0 vs app/views/fields/belongs_to/_index.html.erb in administrate-0.5.0

- old
+ new

@@ -14,10 +14,14 @@ [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/BelongsTo %> <% if field.data %> - <%= link_to( - field.display_associated_resource, - [namespace, field.data], - ) %> + <% if valid_action?(:show, field.attribute) %> + <%= link_to( + field.display_associated_resource, + [namespace, field.data], + ) %> + <% else %> + <%= field.display_associated_resource %> + <% end %> <% end %>