diff options
Diffstat (limited to 'app/views/characters/hearth/hearth_plantings')
-rw-r--r-- | app/views/characters/hearth/hearth_plantings/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/characters/hearth/hearth_plantings/index.html.erb b/app/views/characters/hearth/hearth_plantings/index.html.erb index 8aaefcc..d8e7f96 100644 --- a/app/views/characters/hearth/hearth_plantings/index.html.erb +++ b/app/views/characters/hearth/hearth_plantings/index.html.erb @@ -11,7 +11,7 @@ </div> <div class="grid grid-cols-1 lg:grid-cols-2 gap-4"> - <% @hearth_plantings.each do |hp| %> + <% @hearth_plantings.sort_by(&:ripens_at).each do |hp| %> <div class="flex justify-between items-center border-2 border-yellow-900 rounded p-2"> <h2 class="font-bold"><%= hp.item.name %></h2> <% if hp.ripens_at > Time.now %> |