Class: Integral::CategoryPolicy

Inherits:
BasePolicy show all
Defined in:
app/policies/integral/category_policy.rb

Overview

Handles Category authorization

Instance Attribute Summary

Attributes inherited from BasePolicy

#instance, #user

Instance Method Summary collapse

Methods inherited from BasePolicy

#initialize, #manager?, #permitted_attribute?, #permitted_attributes, #unpermitted_attribute?

Constructor Details

This class inherits a constructor from Integral::BasePolicy

Instance Method Details

#role_nameSymbol

Returns role name.

Returns:

  • (Symbol)

    role name



5
6
7
# File 'app/policies/integral/category_policy.rb', line 5

def role_name
  :post_manager
end