Permalink
Browse files

Merge pull request #9251 from Davidslv/patch-1

Add alias to maintain coherence with other methods, in end_of_day
  • Loading branch information...
2 parents 2e4aa39 + 41cf359 commit d6adcb4ed35b5626780f7e6130631fe2dfe2ac43 @carlosantoniodasilva carlosantoniodasilva committed Feb 11, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/time/calculations.rb
View
1 activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -221,6 +221,7 @@ def beginning_of_day
def end_of_day
change(:hour => 23, :min => 59, :sec => 59, :usec => 999999.999)
end
+ alias :at_end_of_day, :end_of_day
# Returns a new Time representing the start of the month (1st of the month, 0:00)
def beginning_of_month

0 comments on commit d6adcb4

Please sign in to comment.