app/helpers/app_frame/scopes_helper.rb
# return all scopes configured in the controller
return all scopes configured in the controller
return all scopes configured in the controller
def scope_count(scope)
    chain = controller.end_of_association_chain
    chain = chain.send(scope) if scope
    chain.count
  end
def scope_count ( scope ) chain = controller . end_of_association_chain chain = chain . send ( scope ) if scope chain . count end
return all scopes configured in the controller
return all scopes configured in the controller
scope