lib/bullet/association.rb in bullet-2.0.0.beta.1 vs lib/bullet/association.rb in bullet-2.0.0.beta.2

- old
+ new

@@ -278,12 +278,12 @@ # e.g. { [<Post id:1>, <Post id:2>] => [:comments, :user] } def eager_loadings @@eager_loadings ||= {} end - VENDOR_ROOT = File.join(Rails.root, 'vendor') def caller_in_project - callers << caller.select {|c| c =~ /#{Rails.root}/}.reject {|c| c =~ /#{VENDOR_ROOT}/} + vender_root ||= File.join(Rails.root, 'vendor') + callers << caller.select {|c| c =~ /#{Rails.root}/}.reject {|c| c =~ /#{vender_root}/} callers.uniq! end def callers @@callers ||= []