mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-23 23:57:15 +00:00
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
This commit is contained in:
parent
d2298e419c
commit
14e0a6bdba
@ -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| -%>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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| -%>
|
||||
|
||||
@ -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| %>
|
||||
|
||||
@ -32,7 +32,7 @@ module RedmineDiff
|
||||
aelem = a[aindex]
|
||||
next unless bmatches.has_key? aelem
|
||||
k = nil
|
||||
bmatches[aelem].reverse.each { |bindex|
|
||||
bmatches[aelem].reverse_each { |bindex|
|
||||
if k && (thresh[k] > bindex) && (thresh[k-1] < bindex)
|
||||
thresh[k] = bindex
|
||||
else
|
||||
|
||||
@ -29,7 +29,7 @@ module OpenIdAuthentication
|
||||
Association.find_all_by_server_url_and_handle(server_url, handle)
|
||||
end
|
||||
|
||||
assocs.reverse.each do |assoc|
|
||||
assocs.reverse_each do |assoc|
|
||||
a = assoc.from_record
|
||||
if a.expires_in == 0
|
||||
assoc.destroy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user