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