Add logged_in? helper

This commit is contained in:
Paul Chavard 2018-08-29 10:43:47 +01:00
parent 6453b53a41
commit 41815cfb1c

View file

@ -33,6 +33,12 @@ class ApplicationController < ActionController::Base
@facade_data_view = nil @facade_data_view = nil
end end
def logged_in?
logged_user.present?
end
helper_method :logged_in?
protected protected
def authenticate_gestionnaire! def authenticate_gestionnaire!