method

eval_scope

eval_scope(klass, scope, owner)
private

No documentation available.

# File activerecord/lib/active_record/associations/association_scope.rb, line 145
      def eval_scope(klass, scope, owner)
        if scope.is_a?(Relation)
          scope
        else
          klass.unscoped.instance_exec(owner, &scope)
        end
      end