Class: CanTango::PermissionEngine::Selector::AccountTypes
- Defined in:
- lib/cantango/permission_engine/selector/account_types.rb
Instance Attribute Summary collapse
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(subject) ⇒ AccountTypes
constructor
A new instance of AccountTypes.
Methods inherited from Base
Constructor Details
#initialize(subject) ⇒ AccountTypes
Returns a new instance of AccountTypes.
7 8 9 |
# File 'lib/cantango/permission_engine/selector/account_types.rb', line 7 def initialize subject @account_type = subject.account.class.to_s.underscore end |
Instance Attribute Details
#account_type ⇒ Object (readonly)
Returns the value of attribute account_type.
5 6 7 |
# File 'lib/cantango/permission_engine/selector/account_types.rb', line 5 def account_type @account_type end |