diff options
author | Go MAEDA <maeda@farend.jp> | 2017-12-31 01:34:39 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2017-12-31 01:34:39 +0000 |
commit | 14e0a6bdba5a6b49741cc131021fcf5c0b873c98 (patch) | |
tree | 4d2b8a07c86e1d7006e2d07ee43cf46b561d0096 /app | |
parent | d2298e419c108dd3351cff688ff198a09f06eec8 (diff) | |
download | redmine-14e0a6bdba5a6b49741cc131021fcf5c0b873c98.tar.gz redmine-14e0a6bdba5a6b49741cc131021fcf5c0b873c98.zip |
Use reverse_each instead of reverse.each (#27671).
Patch by Timur Tarasenko.
git-svn-id: http://svn.redmine.org/redmine/trunk@17137 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/activities/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/my/blocks/_timelog.html.erb | 2 | ||||
-rw-r--r-- | app/views/users/show.html.erb | 2 | ||||
-rw-r--r-- | app/views/wiki/date_index.html.erb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index c3026fb63..196984d64 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -2,7 +2,7 @@ <p class="subtitle"><%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %></p> <div id="activity"> -<% @events_by_day.keys.sort.reverse.each do |day| %> +<% @events_by_day.keys.sort.reverse_each do |day| %> <h3><%= format_activity_day(day) %></h3> <dl> <% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%> diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index 350cbaec8..f96ee6c2e 100644 --- a/app/views/my/blocks/_timelog.html.erb +++ b/app/views/my/blocks/_timelog.html.erb @@ -37,7 +37,7 @@ <th><%= l(:field_hours) %></th> </tr></thead> <tbody> -<% entries_by_day.keys.sort.reverse.each do |day| %> +<% entries_by_day.keys.sort.reverse_each do |day| %> <tr class="odd"> <td><strong><%= day == User.current.today ? l(:label_today).titleize : format_date(day) %></strong></td> <td colspan="2"></td> diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 943ee3821..3907d6192 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -53,7 +53,7 @@ :from => @events_by_day.keys.first %></h3> <div id="activity"> -<% @events_by_day.keys.sort.reverse.each do |day| %> +<% @events_by_day.keys.sort.reverse_each do |day| %> <h4><%= format_activity_day(day) %></h4> <dl> <% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%> diff --git a/app/views/wiki/date_index.html.erb b/app/views/wiki/date_index.html.erb index 69a6960b4..274f19a8a 100644 --- a/app/views/wiki/date_index.html.erb +++ b/app/views/wiki/date_index.html.erb @@ -14,7 +14,7 @@ <p class="nodata"><%= l(:label_no_data) %></p> <% end %> -<% @pages_by_date.keys.sort.reverse.each do |date| %> +<% @pages_by_date.keys.sort.reverse_each do |date| %> <h3><%= format_date(date) %></h3> <ul> <% @pages_by_date[date].each do |page| %> |