Method: ActiveRecord::Scoping::ScopeRegistry#current_scope

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

#current_scope(model, skip_inherited_scope = false) ⇒ Object



92
93
94
# File 'activerecord/lib/active_record/scoping.rb', line 92

def current_scope(model, skip_inherited_scope = false)
  value_for(@current_scope, model, skip_inherited_scope)
end