Class: BasePolicy

Inherits:
Canner::Policy show all
Defined in:
lib/generators/canner/fetch_roles/templates/base_policy.rb

Instance Method Summary collapse

Methods inherited from Canner::Policy

#can?, #canner_scope, #initialize

Constructor Details

This class inherits a constructor from Canner::Policy

Instance Method Details

#fetch_rolesObject

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