lib/calculations.rb in by_star-0.3.1 vs lib/calculations.rb in by_star-0.4.0

- old
+ new

@@ -2,11 +2,11 @@ module Calculations include Count include Sum private - def work_out_month(time, options = {}) - year = options[:year] ||= Time.zone.now.year + def work_out_month(time, year=Time.zone.now.year) + year ||= Time.zone.now.year # Work out what actual month is. month = if time.is_a?(Numeric) && (1..12).include?(time) time elsif valid_time_or_date?(time) year = time.year \ No newline at end of file