diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8dd6c76c..a79c7b58 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -14,7 +14,7 @@ class ApplicationController < ActionController::Base rescue_from ActiveRecord::RecordNotFound, with: :record_not_found - def authenticate_user! + def authenticate_user!(opts = {}) if request.headers["X-API-Key"].present? authenticate_with_api_token! else