Skip to content

Commit

Permalink
Link integer on index if it's the primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Oct 29, 2024
1 parent 8255806 commit 26df7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/madmin/fields/integer/_index.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= field.value(record) %>
<%= link_to_if field.attribute_name.to_s == resource.model.primary_key, field.value(record), resource.show_path(record) %>

0 comments on commit 26df7b2

Please sign in to comment.