We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
time_ago
1 parent 7395af7 commit 227611cCopy full SHA for 227611c
app/helpers/puzzles_helper.rb
@@ -1,2 +1,5 @@
1
module PuzzlesHelper
2
+ def time_ago(past_time)
3
+ "#{time_ago_in_words(past_time)} ago"
4
+ end
5
end
app/views/puzzles/_puzzles_table.html.erb
@@ -24,7 +24,7 @@
24
<% end %>
25
</td>
26
<% if actions == :archived %>
27
- <td><%= time_ago_in_words(puzzle.sent_at) %> ago</td>
+ <td><%= time_ago(puzzle.sent_at) %></td>
28
29
<td>
30
<% if actions == :pending %>
0 commit comments