Permalink
Browse files

Clean Date#beginning_of_month description

Unnecessary peace of text was injected at
507da04 by mistake.
  • Loading branch information...
1 parent 852ff78 commit a1a16de49bd223086002a4dab899ed441bb9c956 @avakhov avakhov committed May 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/date/calculations.rb
@@ -202,7 +202,7 @@ def next_week(day = :monday)
acts_like?(:time) ? result.change(:hour => 0) : result
end
- # Returns a new ; DateTime objects will have time set to 0:00DateTime representing the start of the month (1st of the month; DateTime objects will have time set to 0:00)
+ # Returns a new Date/DateTime representing the start of the month (1st of the month; DateTime objects will have time set to 0:00)
def beginning_of_month
acts_like?(:time) ? change(:day => 1, :hour => 0) : change(:day => 1)
end

0 comments on commit a1a16de

Please sign in to comment.