Skip to content
Browse files

Update activesupport/lib/active_support/core_ext/time/calculations.rb

Just maintaining the coherence with other methods, since everything has "at_" as prefix.
  • Loading branch information...
1 parent 2e4aa39 commit 41cf3596c6ca46cd5062c18a0465ec509067ab4d @Davidslv Davidslv 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 41cf359

Please sign in to comment.
Something went wrong with that request. Please try again.