Class: BasePolicy
- Inherits:
-
Canner::Policy
- Object
- Canner::Policy
- BasePolicy
- Defined in:
- lib/generators/canner/fetch_roles/templates/base_policy.rb
Instance Method Summary collapse
-
#fetch_roles ⇒ Object
results expected to be an array or strings or symbols that represent the user roles.
Methods inherited from Canner::Policy
#can?, #canner_scope, #initialize
Constructor Details
This class inherits a constructor from Canner::Policy
Instance Method Details
#fetch_roles ⇒ Object
results expected to be an array or strings or symbols that represent the user roles
4 5 6 |
# File 'lib/generators/canner/fetch_roles/templates/base_policy.rb', line 4 def fetch_roles @current_user.roles end |