Just pass the object, rather than the id, to _path methods where possible

This commit is contained in:
Andy Allan 2018-09-10 11:09:19 +08:00
parent 4dd4831c0a
commit 100babbe6c
2 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@
<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => {:changeset => changeset_data} do %>
<h4>
<a class="changeset_id" href="<%= changeset_path(changeset.id) %>">
<a class="changeset_id" href="<%= changeset_path(changeset) %>">
<%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %>
</a>
</h4>