Module: CurrentScope::Context
Overview
Include in ApplicationController (before Guard). Populates the ambient context from the host's authentication once per request and exposes allowed_to? to actions and views. CurrentAttributes resets itself around every request and job, so nothing leaks between executions.
Method Summary
Methods included from Permissions
#allowed_to?, #current_scope_actor, #current_scope_user, #impersonating?, #scope_for