aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date/calculations.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-26 17:49:59 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-26 17:49:59 +0530
commit575e77ba167844c0ef492897240d9568cdc9b5f5 (patch)
treef5aa8322a8f2e27af5ff8c132eacc87e2741deef /activesupport/lib/active_support/core_ext/date/calculations.rb
parente8cac28917261d6001ab0dbf2da72ef028b3ab72 (diff)
parent06731530ff4f13facdfa60e4db55ea9c081cd055 (diff)
downloadrails-575e77ba167844c0ef492897240d9568cdc9b5f5.tar.gz
rails-575e77ba167844c0ef492897240d9568cdc9b5f5.tar.bz2
rails-575e77ba167844c0ef492897240d9568cdc9b5f5.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/calculations.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/date/calculations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/calculations.rb b/activesupport/lib/active_support/core_ext/date/calculations.rb
index 3e36c54eba..8a7eb6bc6b 100644
--- a/activesupport/lib/active_support/core_ext/date/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/date/calculations.rb
@@ -202,7 +202,7 @@ class Date
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