module ApplicationHelper
end

module ApplicationHelper
  def logged_in?
    !!session[:user_id]
  end

  def current_user
    @current_user || User.find(session[:user_id]) if logged_in?
  end

end

Add logged in and current user helpers
Add logged in and current user helpers
