Commit 8ecbb86e5ea54b80fce462d8d61ae0201aa925db
1 parent
3181c9a6
Exists in
master
and in
3 other branches
Added option
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
CHANGELOG.md
lib/groupdate/magic.rb
... | ... | @@ -147,7 +147,8 @@ module Groupdate |
147 | 147 | count = |
148 | 148 | begin |
149 | 149 | Hash[relation.send(method, *args, &block).map { |k, v| [multiple_groups ? k[0...@group_index] + [cast_method.call(k[@group_index])] + k[(@group_index + 1)..-1] : cast_method.call(k), v] }] |
150 | - rescue NoMethodError | |
150 | + rescue NoMethodError => e | |
151 | + raise e if options[:debug_time_zone_support] | |
151 | 152 | raise "Be sure to install time zone support - https://github.com/ankane/groupdate#for-mysql" |
152 | 153 | end |
153 | 154 | ... | ... |