Module: Permissify::Union
- Includes:
- Common
- Included in:
- PermissifiedProductsInterface::Admin, PermissifiedProductsInterface::Brand, PermissifiedProductsInterface::Corporation, PermissifiedProductsInterface::Dealer, PermissifiedProductsInterface::Merchant, Roles
- Defined in:
- lib/permissify/union.rb
Instance Method Summary collapse
-
#permission(action, category) ⇒ Object
interface used by Permissify::Common.allowed_to?.
- #permissions ⇒ Object
Methods included from Common
#allowed_to?, #createable?, #deleteable?, #log_permissions, #permissible?, #subscribed_to?, #updateable?, #viewable?
Instance Method Details
#permission(action, category) ⇒ Object
interface used by Permissify::Common.allowed_to?
10 11 12 13 |
# File 'lib/permissify/union.rb', line 10 def (action, category) # interface used by Permissify::Common.allowed_to? @union ||= construct_union # TODO : get lazier? permissible?(@union, action, category) end |
#permissions ⇒ Object
6 7 8 |
# File 'lib/permissify/union.rb', line 6 def @union ||= construct_union end |