Class: CanTango::PermitEngine::Builder::SpecialPermits
- Inherits:
-
Base
- Object
- Base
- CanTango::PermitEngine::Builder::SpecialPermits
show all
- Defined in:
- lib/cantango/permit_engine/builder/special_permits.rb
Instance Attribute Summary
Attributes inherited from Base
#ability
Instance Method Summary
collapse
Methods inherited from Base
#initialize
#debug
Instance Method Details
#build ⇒ Object
5
6
7
|
# File 'lib/cantango/permit_engine/builder/special_permits.rb', line 5
def build
special_permits.map{|role| create_permit(role)}.compact
end
|
#special_permits ⇒ Object
9
10
11
|
# File 'lib/cantango/permit_engine/builder/special_permits.rb', line 9
def special_permits
[:system, :any]
end
|