current fix for x-api-key
This commit is contained in:
parent
d215b31739
commit
8da50eb32c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_client
|
def current_client
|
||||||
@current_client ||= Client.find_by key: request.headers["X_API_KEY"]
|
@current_client ||= Client.find_by key: (request.headers["X_API_KEY"] || request.headers["HTTP_X_API_KEY"])
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_ability
|
def current_ability
|
||||||
|
|
Loading…
Reference in a new issue