module YariiEditor::CurrentUser

Public Class Methods

from_controller(controller) click to toggle source
# File lib/yarii-editor/setup_current_user.rb, line 5
def self.from_controller(controller)
  self.user = controller.current_user
end
reset() click to toggle source
# File lib/yarii-editor/setup_current_user.rb, line 9
def self.reset
  self.user = nil
end