Permalink
Browse files

keys.include? -> key?

  • Loading branch information...
1 parent 2296e74 commit 2e0c6173bdac9e37131ea1ab621f51e554bde699 @fxn fxn committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/date/calculations.rb
@@ -28,7 +28,7 @@ def beginning_of_week=(week_start)
# 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

0 comments on commit 2e0c617

Please sign in to comment.