module SessionsHelper
end

module SessionsHelper
  # Login the given user
  def log_in(user)
    session[:user_id] = user.id
  end

  def current_user
    @current_user ||= User.find_by(id: session[:user_id])
  end
end

Add session helper methods log_in & current_user
Add session helper methods log_in & current_user
