lib/prosopite.rb in prosopite-1.3.0 vs lib/prosopite.rb in prosopite-1.3.1
- old
+ new
@@ -1,7 +1,10 @@
module Prosopite
- DEFAULT_ALLOW_LIST = %w(active_record/associations/preloader active_record/validations/uniqueness)
+ DEFAULT_ALLOW_LIST = [
+ /active_record\/relation.rb.*preload_associations/,
+ 'active_record/validations/uniqueness'
+ ].freeze
class NPlusOneQueriesError < StandardError; end
class << self
attr_writer :raise,
:stderr_logger,