class method
self.beginning_of_week=
Ruby on Rails 8.1.2
Since v4.0.13Signature
self.beginning_of_week=(week_start)
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
Parameters
-
week_startreq
Source
# 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
Defined in activesupport/lib/active_support/core_ext/date/calculations.rb line 27
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Date