Class: Tuberack::DummyUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Tuberack::DummyUser
- Defined in:
- lib/tuberack/dummy_user.rb
Instance Attribute Summary collapse
-
#manage ⇒ Object
Returns the value of attribute manage.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#xeditable ⇒ Object
Returns the value of attribute xeditable.
Instance Method Summary collapse
Instance Attribute Details
#manage ⇒ Object
Returns the value of attribute manage.
3 4 5 |
# File 'lib/tuberack/dummy_user.rb', line 3 def manage @manage end |
#roles ⇒ Object
Returns the value of attribute roles.
3 4 5 |
# File 'lib/tuberack/dummy_user.rb', line 3 def roles @roles end |
#xeditable ⇒ Object
Returns the value of attribute xeditable.
3 4 5 |
# File 'lib/tuberack/dummy_user.rb', line 3 def xeditable @xeditable end |
Instance Method Details
#has_role?(role) ⇒ Boolean
5 6 7 |
# File 'lib/tuberack/dummy_user.rb', line 5 def has_role? role roles.split(',').include? role.to_s if roles end |
#manage? ⇒ Boolean
10 |
# File 'lib/tuberack/dummy_user.rb', line 10 def manage?; manage end |
#xeditable? ⇒ Boolean
9 |
# File 'lib/tuberack/dummy_user.rb', line 9 def xeditable?; xeditable end |