Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean Date#beginning_of_month description

Unnecessary peace of text was injected at
507da04 by mistake.
  • Loading branch information...
commit a1a16de49bd223086002a4dab899ed441bb9c956 1 parent 852ff78
@avakhov avakhov authored
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.