lib/bullet.rb in bullet-4.14.10 vs lib/bullet.rb in bullet-5.0.0
- old
+ new
@@ -26,11 +26,11 @@
end
end
end
class << self
- attr_writer :enable, :n_plus_one_query_enable, :unused_eager_loading_enable, :counter_cache_enable, :stacktrace_includes
+ attr_writer :enable, :n_plus_one_query_enable, :unused_eager_loading_enable, :counter_cache_enable, :stacktrace_includes, :stacktrace_excludes
attr_reader :notification_collector, :whitelist
attr_accessor :add_footer, :orm_pathches_applied
available_notifiers = UniformNotifier::AVAILABLE_NOTIFIERS.map { |notifier| "#{notifier}=" }
available_notifiers << { :to => UniformNotifier }
@@ -72,9 +72,13 @@
self.enable? && !!@counter_cache_enable
end
def stacktrace_includes
@stacktrace_includes || []
+ end
+
+ def stacktrace_excludes
+ @stacktrace_excludes || []
end
def add_whitelist(options)
reset_whitelist
@whitelist[options[:type]][options[:class_name].classify] ||= []