Method: ActiveRecord::Relation#_exec_scope

Defined in:
activerecord/lib/active_record/relation.rb

#_exec_scopeObject

:nodoc:



552
553
554
555
556
557
558
# File 'activerecord/lib/active_record/relation.rb', line 552

def _exec_scope(...) # :nodoc:
  @delegate_to_model = true
  registry = model.scope_registry
  _scoping(nil, registry) { instance_exec(...) || self }
ensure
  @delegate_to_model = false
end