Skip to content

Commit

Permalink
Merge pull request rails#9251 from Davidslv/patch-1
Browse files Browse the repository at this point in the history
Add alias to maintain coherence with other methods, in end_of_day
  • Loading branch information
carlosantoniodasilva committed Feb 11, 2013
2 parents 2e4aa39 + 41cf359 commit d6adcb4
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit d6adcb4

Please sign in to comment.