method
eval_scope
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::Associations::AssociationScope
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