# File lib/active_support/core_ext/time/calculations.rb, line 247 def end_of_quarter beginning_of_month.change(:month => [3, 6, 9, 12].detect { |m| m >= self.month }).end_of_month end