Method: Cally::ApplicationHelper#current_user
- Defined in:
- app/helpers/cally/application_helper.rb
#current_user ⇒ Object
helper_method :current_user, :logged_in?, :is_admin?, :is_first_user?
5 6 7 |
# File 'app/helpers/cally/application_helper.rb', line 5 def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end |