lib/easy_auth.rb in ez_auth-0.0.1 vs lib/easy_auth.rb in ez_auth-0.0.2

- old
+ new

@@ -14,10 +14,10 @@ def authenticated? request_auth_token == authentication_token end def request_auth_token - request.env['HTTP_X_API_TOKEN'] || params[:api_token] + request.headers['HTTP_X_API_TOKEN'] || request.env['HTTP_X_API_TOKEN'] || params[:api_token] end def authentication_token ENV.fetch('API_TOKEN') { 'DEV_TOKEN' } end