Module: PermissifiedProductsInterface::Brand

Includes:
Permissify::Union
Defined in:
lib/generators/permissify/product/template/interface/brand.rb

Constant Summary collapse

PERMISSIFIED_ASSOCIATION =
:permissible_products

Instance Method Summary collapse

Methods included from Permissify::Union

#permission, #permissions

Methods included from Permissify::Common

#allowed_to?, #createable?, #deleteable?, #log_permissions, #permissible?, #subscribed_to?, #updateable?, #viewable?

Instance Method Details

#permissible_productsObject



3
4
5
# File 'lib/generators/permissify/product/template/interface/brand.rb', line 3

def permissible_products
  self.corporation.products + self.products
end