Class: CanTango::Builder::Permit::AccountType

Inherits:
Base
  • Object
show all
Defined in:
lib/cantango/permits_ext/builder/permit/account_type.rb

Instance Attribute Summary

Attributes inherited from Base

#ability, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #permit_type

Methods included from Permit::Helper::Naming

#account_name, #permit_name, #permit_type

Constructor Details

This class inherits a constructor from CanTango::Builder::Permit::Base

Instance Method Details

#buildArray<RoleGroupPermit::Base>

builds a list of Permits for each role of the current ability user (or account)

Returns:

  • (Array<RoleGroupPermit::Base>)

    the role permits built for this ability



6
7
8
9
# File 'lib/cantango/permits_ext/builder/permit/account_type.rb', line 6

def build
  return [] if !
  super
end