diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date_and_time/calculations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb index e4bfd9f7c5..9525c10112 100644 --- a/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb @@ -48,7 +48,7 @@ module DateAndTime # Returns true if the date/time falls on a Saturday or Sunday. def on_weekend? - wday.in?(WEEKEND_DAYS) + WEEKEND_DAYS.include?(wday) end # Returns a new date/time the specified number of days ago. |