Ugly server debug hack
This commit is contained in:
parent
29b51a63e2
commit
d44a7ab563
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_client
|
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"])
|
@current_client ||= Client.find_by key: (request.headers["X_API_KEY"] || request.headers["HTTP_X_API_KEY"])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue