aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorAditya Sanghi <asanghi@me.com>2011-05-06 15:51:09 +0530
committerAditya Sanghi <asanghi@me.com>2011-05-06 15:51:09 +0530
commit65a9563209c741757a9a0177019eff3b10de98a8 (patch)
tree82f149ee3d6e5c66763fb546de3c3b2353fd8793 /actionpack/lib
parentae7d0d816db3f9a94008d36ab9efbe7583700981 (diff)
downloadrails-65a9563209c741757a9a0177019eff3b10de98a8.tar.gz
rails-65a9563209c741757a9a0177019eff3b10de98a8.tar.bz2
rails-65a9563209c741757a9a0177019eff3b10de98a8.zip
strip space
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index c5f2fb6b2d..eb8c96a6ae 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -101,9 +101,9 @@ module ActionView
leap_years = (fyear > tyear) ? 0 : (fyear..tyear).count{|x| Date.leap?(x)}
minute_offset_for_leap_year = leap_years * 1440
# Discount the leap year days when calculating year distance.
- # e.g. if there are 20 leap year days between 2 dates having the same day
+ # e.g. if there are 20 leap year days between 2 dates having the same day
# and month then the based on 365 days calculation
- # the distance in years will come out to over 80 years when in written
+ # the distance in years will come out to over 80 years when in written
# english it would read better as about 80 years.
minutes_with_offset = distance_in_minutes - minute_offset_for_leap_year
remainder = (minutes_with_offset % 525600)