Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
beginning_of_quarter()
public
Returns a new Date/DateTime representing the
start of the quarter (1st of january, april, july, october; DateTime objects will have time set to 0:00)
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 244
def beginning_of_quarter
beginning_of_month.change(:month => [10, 7, 4, 1].detect { |m| m <= self.month })
end