Method: Date.beginning_of_week=
- Defined in:
- activesupport/lib/active_support/core_ext/date/calculations.rb
.beginning_of_week=(week_start) ⇒ Object
Sets Date.beginning_of_week to a week start (e.g. :monday) for current request/thread.
This method accepts any of the following day symbols: :monday, :tuesday, :wednesday, :thursday, :friday, :saturday, :sunday
27 28 29 |
# File 'activesupport/lib/active_support/core_ext/date/calculations.rb', line 27 def beginning_of_week=(week_start) ::ActiveSupport::IsolatedExecutionState[:beginning_of_week] = find_beginning_of_week!(week_start) end |