diff options
Diffstat (limited to 'app/controllers/controller_extension/token_authentication.rb')
-rw-r--r-- | app/controllers/controller_extension/token_authentication.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/controller_extension/token_authentication.rb b/app/controllers/controller_extension/token_authentication.rb index 1cb6ffa..4ad1977 100644 --- a/app/controllers/controller_extension/token_authentication.rb +++ b/app/controllers/controller_extension/token_authentication.rb @@ -1,6 +1,8 @@ module ControllerExtension::TokenAuthentication extend ActiveSupport::Concern + protected + def token @token ||= authenticate_with_http_token do |token, options| Token.find_by_token(token) |