Class: CanTango::Permits::UserPermit::Builder
- Inherits:
-
CanTango::PermitEngine::Builder::Base
- Object
- CanTango::PermitEngine::Builder::Base
- CanTango::Permits::UserPermit::Builder
- Defined in:
- lib/cantango/permits/user_permit/builder.rb
Instance Attribute Summary
Attributes inherited from CanTango::PermitEngine::Builder::Base
Instance Method Summary collapse
-
#build ⇒ Array<Permit::Base>
builds a list of Permits for each role of the current ability user (or account).
- #name ⇒ Object
Methods inherited from CanTango::PermitEngine::Builder::Base
Methods included from Helpers::Debug
Constructor Details
This class inherits a constructor from CanTango::PermitEngine::Builder::Base
Instance Method Details
#build ⇒ Array<Permit::Base>
builds a list of Permits for each role of the current ability user (or account)
9 10 11 12 |
# File 'lib/cantango/permits/user_permit/builder.rb', line 9 def build puts debug_msg if CanTango.debug? [permit].compact end |
#name ⇒ Object
14 15 16 |
# File 'lib/cantango/permits/user_permit/builder.rb', line 14 def name :user end |