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

  protected

  def admin?
    BasicAuth.admin?(request)
  end
end

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

  protected

  def admin?
    BasicAuth.logged_in?(request)
  end
end

Fix usage of BasicAuth.logged_in? method
Fix usage of BasicAuth.logged_in? method
