Commit 172dc26c5ce54766328aa673f7c813893260603a
1 parent
5e2ea34d
Exists in
master
and in
12 other branches
added default_value option
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/groupdate/magic.rb
@@ -140,7 +140,7 @@ module Groupdate | @@ -140,7 +140,7 @@ module Groupdate | ||
140 | raise "Be sure to install time zone support - https://github.com/ankane/groupdate#for-mysql" | 140 | raise "Be sure to install time zone support - https://github.com/ankane/groupdate#for-mysql" |
141 | end | 141 | end |
142 | 142 | ||
143 | - series(count, 0, multiple_groups, reverse) | 143 | + series(count, (options.has_key?(:default_value) ? options[:default_value] : 0), multiple_groups, reverse) |
144 | end | 144 | end |
145 | 145 | ||
146 | protected | 146 | protected |