Skip to content

Commit e7ed048

Browse files
committed
Rails 5's token auth method takes two methods
Since we are monkey patching this method we need to match the signature.
1 parent a030f00 commit e7ed048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kracken/controllers/token_authenticatable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def self.included(base)
1414
end
1515

1616
# NOTE: Monkey-patch until this is merged into the gem
17-
def request_http_token_authentication(realm = 'Application')
17+
def request_http_token_authentication(realm = 'Application', message = nil)
1818
headers["WWW-Authenticate"] = %(Token realm="#{realm.gsub(/"/, "")}")
1919
raise TokenUnauthorized, "Invalid Credentials"
2020
end

0 commit comments

Comments
 (0)