From a6467802ff2be35c6665635f1cdfdcea07aeaa12 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 13 Jun 2011 19:09:11 +0200 Subject: Rename Time#whole_* to Time#all_* [thanks Pratik!] --- activesupport/lib/active_support/core_ext/time/calculations.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activesupport/lib/active_support/core_ext') diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index 54e16a9fb7..c5fbbcf890 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -249,27 +249,27 @@ class Time end # Returns a Range representing the whole day of the current time. - def whole_day + def all_day beginning_of_day..end_of_day end # Returns a Range representing the whole week of the current time. - def whole_week + def all_week beginning_of_week..end_of_week end # Returns a Range representing the whole month of the current time. - def whole_month + def all_month beginning_of_month..end_of_month end # Returns a Range representing the whole quarter of the current time. - def whole_quarter + def all_quarter beginning_of_quarter..end_of_quarter end # Returns a Range representing the whole year of the current time. - def whole_year + def all_year beginning_of_year..end_of_year end -- cgit v1.2.3