Class: CanTango::Builder::Permit::Special

Inherits:
Base
  • Object
show all
Defined in:
lib/cantango/permits_ext/builder/permit/special.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

#buildObject



4
5
6
# File 'lib/cantango/permits_ext/builder/permit/special.rb', line 4

def build
  special_permits.map{|name| create_permit(name) }.compact
end

#special_permitsObject



8
9
10
# File 'lib/cantango/permits_ext/builder/permit/special.rb', line 8

def special_permits
  [:system, :any]
end