aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-10-09 17:50:49 +0200
committerXavier Noria <fxn@hashref.com>2012-10-09 17:54:24 +0200
commit2e0c6173bdac9e37131ea1ab621f51e554bde699 (patch)
tree778926e84e10915dcc369f9260f4bd49b776cea3 /activesupport
parent2296e74973611c46d0c3a95ec8ef916bb28a31f5 (diff)
downloadrails-2e0c6173bdac9e37131ea1ab621f51e554bde699.tar.gz
rails-2e0c6173bdac9e37131ea1ab621f51e554bde699.tar.bz2
rails-2e0c6173bdac9e37131ea1ab621f51e554bde699.zip
keys.include? -> key?
Diffstat (limited to 'activesupport')
-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 a7551d9c64..02ae57b4a6 100644
--- a/activesupport/lib/active_support/core_ext/date/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/date/calculations.rb
@@ -28,7 +28,7 @@ class Date
# Returns week start day symbol (e.g. :monday), or raises an ArgumentError for invalid day symbol.
def find_beginning_of_week!(week_start)
- raise ArgumentError, "Invalid beginning of week: #{week_start}" unless ::Date::DAYS_INTO_WEEK.keys.include?(week_start)
+ raise ArgumentError, "Invalid beginning of week: #{week_start}" unless ::Date::DAYS_INTO_WEEK.key?(week_start)
week_start
end