Class: Tuberack::DummyController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/tuberack/dummy_controller.rb

Instance Method Summary collapse

Instance Method Details

#current_userObject



7
8
9
# File 'lib/tuberack/dummy_controller.rb', line 7

def current_user
  @@current_user ||= DummyUser.new
end

#manage?Boolean



16
17
18
# File 'lib/tuberack/dummy_controller.rb', line 16

def manage?
  current_user.manage?
end

#xeditable?(object) ⇒ Boolean



11
12
13
# File 'lib/tuberack/dummy_controller.rb', line 11

def xeditable? object
  current_user.xeditable?
end