lib/bullet.rb in bullet-5.0.0 vs lib/bullet.rb in bullet-5.1.0
- old
+ new
@@ -80,11 +80,11 @@
@stacktrace_excludes || []
end
def add_whitelist(options)
reset_whitelist
- @whitelist[options[:type]][options[:class_name].classify] ||= []
- @whitelist[options[:type]][options[:class_name].classify] << options[:association].to_sym
+ @whitelist[options[:type]][options[:class_name]] ||= []
+ @whitelist[options[:type]][options[:class_name]] << options[:association].to_sym
end
def get_whitelist_associations(type, class_name)
Array(@whitelist[type][class_name])
end