Add logged_in? helper
This commit is contained in:
parent
6453b53a41
commit
41815cfb1c
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ class ApplicationController < ActionController::Base
|
|||
@facade_data_view = nil
|
||||
end
|
||||
|
||||
def logged_in?
|
||||
logged_user.present?
|
||||
end
|
||||
|
||||
helper_method :logged_in?
|
||||
|
||||
protected
|
||||
|
||||
def authenticate_gestionnaire!
|
||||
|
|
Loading…
Reference in a new issue