lib/bullet.rb in bullet-4.14.5 vs lib/bullet.rb in bullet-4.14.6
- old
+ new
@@ -27,10 +27,12 @@
class << self
attr_writer :enable, :n_plus_one_query_enable, :unused_eager_loading_enable, :counter_cache_enable, :stacktrace_includes
attr_reader :notification_collector, :whitelist
attr_accessor :add_footer, :orm_pathches_applied
- delegate *UniformNotifier::AVAILABLE_NOTIFIERS.map { |notifier| "#{notifier}=" }, :to => UniformNotifier
+ available_notifiers = UniformNotifier::AVAILABLE_NOTIFIERS.map { |notifier| "#{notifier}=" }
+ available_notifiers << { :to => UniformNotifier }
+ delegate *available_notifiers
def raise=(should_raise)
UniformNotifier.raise=(should_raise ? Notification::UnoptimizedQueryError : false)
end