module ApplicationHelper
end

module ApplicationHelper
  def current_user
    @current_user ||= User.find(session[:user_id])
  end

  def logged_in?
    session[:user_id] != nil
  end

  def check_logged_in
    redirect_to new_session_path unless logged_in?
  end
end

Add in helper methods curret user, logged in? and check logged in
Add in helper methods curret user, logged in? and check logged in
