Commit 69673320abac959bf7154269b2126f287ff70aeb

Authored by Andrew Kane
1 parent f514b843

Added branch to debug time zone support

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
lib/groupdate/magic.rb
... ... @@ -132,8 +132,8 @@ module Groupdate
132 132 count =
133 133 begin
134 134 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] }]
135   - rescue NoMethodError
136   - raise "Be sure to install time zone support - https://github.com/ankane/groupdate#for-mysql"
  135 + rescue NoMethodError => e
  136 + raise e
137 137 end
138 138  
139 139 series(count, (options.key?(:default_value) ? options[:default_value] : 0), multiple_groups, reverse)
... ...