Skip to content

Commit

Permalink
Replaces using description with note_description
Browse files Browse the repository at this point in the history
Replaces using note's description method with note_description helper routine.
  • Loading branch information
nenad-vujicic committed Jan 28, 2025
1 parent b8be249 commit af5ed10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/notes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</td>
<td><%= link_to note.id, note %></td>
<td><%= note_author(note.author) %></td>
<td><%= note.description.to_html %></td>
<td><%= note_description(note).to_html %></td>
<td><%= friendly_date_ago(note.created_at) %></td>
<td><%= friendly_date_ago(note.updated_at) %></td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion app/views/notes/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div>
<h4><%= t(".description") %></h4>
<div class="overflow-hidden ms-2">
<%= h(@note.description.to_html) %>
<%= h(note_description(@note).to_html) %>
</div>

<div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">
Expand Down

0 comments on commit af5ed10

Please sign in to comment.