wrap_scope(scope, mod)
private

No documentation available.

# File activerecord/lib/active_record/associations/builder/collection_association.rb, line 83
    def wrap_scope(scope, mod)
      if scope
        proc { |owner| instance_exec(owner, &scope).extending(mod) }
      else
        proc { extending(mod) }
      end
    end