Module: Authorization::Padrino::CurrentUser

Defined in:
lib/declarative_authorization_padrino/padrino.rb

Overview

Include this module in your helpers if you don’t have an auth system that provides them :)

Instance Method Summary collapse

Instance Method Details

#current_userObject



21
22
23
# File 'lib/declarative_authorization_padrino/padrino.rb', line 21

def current_user
  Authorization.current_user
end

#current_user=(user) ⇒ Object



24
25
26
# File 'lib/declarative_authorization_padrino/padrino.rb', line 24

def current_user=(user)
  Authorization.current_user=user
end