Index: app/views/activities/index.html.erb
===================================================================
--- app/views/activities/index.html.erb (revision 17048)
+++ app/views/activities/index.html.erb (working copy)
@@ -2,7 +2,7 @@
<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>
-<% @events_by_day.keys.sort.reverse.each do |day| %>
+<% @events_by_day.keys.sort.reverse_each do |day| %>
<%= format_activity_day(day) %>
<% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%>
Index: app/views/my/blocks/_timelog.html.erb
===================================================================
--- app/views/my/blocks/_timelog.html.erb (revision 17048)
+++ app/views/my/blocks/_timelog.html.erb (working copy)
@@ -37,7 +37,7 @@
<%= l(:field_hours) %> |
-<% entries_by_day.keys.sort.reverse.each do |day| %>
+<% entries_by_day.keys.sort.reverse_each do |day| %>
<%= day == User.current.today ? l(:label_today).titleize : format_date(day) %> |
|
Index: app/views/users/show.html.erb
===================================================================
--- app/views/users/show.html.erb (revision 17048)
+++ app/views/users/show.html.erb (working copy)
@@ -53,7 +53,7 @@
:from => @events_by_day.keys.first %>
-<% @events_by_day.keys.sort.reverse.each do |day| %>
+<% @events_by_day.keys.sort.reverse_each do |day| %>
<%= format_activity_day(day) %>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
Index: app/views/wiki/date_index.html.erb
===================================================================
--- app/views/wiki/date_index.html.erb (revision 17048)
+++ app/views/wiki/date_index.html.erb (working copy)
@@ -14,7 +14,7 @@
<%= l(:label_no_data) %>
<% end %>
-<% @pages_by_date.keys.sort.reverse.each do |date| %>
+<% @pages_by_date.keys.sort.reverse_each do |date| %>
<%= format_date(date) %>
<% @pages_by_date[date].each do |page| %>
Index: lib/diff.rb
===================================================================
--- lib/diff.rb (revision 17048)
+++ lib/diff.rb (working copy)
@@ -32,7 +32,7 @@
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
Index: lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb
===================================================================
--- lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb (revision 17048)
+++ lib/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb (working copy)
@@ -29,7 +29,7 @@
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