Class: Tuberack::DummyController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Tuberack::DummyController
- Defined in:
- lib/tuberack/dummy_controller.rb
Instance Method Summary collapse
Instance Method Details
#current_user ⇒ Object
7 8 9 |
# File 'lib/tuberack/dummy_controller.rb', line 7 def current_user @@current_user ||= DummyUser.new end |
#manage? ⇒ Boolean
17 18 19 |
# File 'lib/tuberack/dummy_controller.rb', line 17 def manage? current_user.manage? end |
#xeditable?(object) ⇒ Boolean
12 13 14 |
# File 'lib/tuberack/dummy_controller.rb', line 12 def xeditable? object current_user.xeditable? end |