Skip to content

Commit

Permalink
Clean Date#beginning_of_month description
Browse files Browse the repository at this point in the history
Unnecessary peace of text was injected at
507da04 by mistake.
  • Loading branch information
avakhov committed May 25, 2012
1 parent 852ff78 commit a1a16de
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -202,7 +202,7 @@ def next_week(day = :monday)
acts_like?(:time) ? result.change(:hour => 0) : result acts_like?(:time) ? result.change(:hour => 0) : result
end 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 def beginning_of_month
acts_like?(:time) ? change(:day => 1, :hour => 0) : change(:day => 1) acts_like?(:time) ? change(:day => 1, :hour => 0) : change(:day => 1)
end end
Expand Down

0 comments on commit a1a16de

Please sign in to comment.