lib/bullet.rb in bullet-4.7.1 vs lib/bullet.rb in bullet-4.8.0

- old
+ new

@@ -64,10 +64,10 @@ self.enable? && !!@counter_cache_enable end def add_whitelist(options) @whitelist[options[:type]][options[:class_name].classify] ||= [] - @whitelist[options[:type]][options[:class_name].classify] << options[:association].to_s.tableize.to_sym + @whitelist[options[:type]][options[:class_name].classify] << options[:association] end def get_whitelist_associations(type, class_name) Array(@whitelist[type][class_name]) end