Ugly server debug hack

This commit is contained in:
benji 2015-09-11 22:41:43 +02:00
parent 29b51a63e2
commit d44a7ab563

View file

@ -15,6 +15,7 @@ class ApplicationController < ActionController::Base
end
def current_client
Client.find_by key: request.headers.inspect.to_s
@current_client ||= Client.find_by key: (request.headers["X_API_KEY"] || request.headers["HTTP_X_API_KEY"])
end