class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :require_login

  private

    def require_login
      unless current_user
        redirect_to new_user_session_path
      end
    end
end
