]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/client_application.rb
Replace conditional comments with browser detection
[rails.git] / app / models / client_application.rb
index 1d5922d8e52073df6b55c3b1823b77aaae795ece..d11942beb6434e7c393db40ad3cfd5f3c3c4849b 100644 (file)
@@ -51,7 +51,7 @@ class ClientApplication < ActiveRecord::Base
 
   def self.find_token(token_key)
     token = OauthToken.includes(:client_application).find_by(:token => token_key)
-    token if token && token.authorized?
+    token if token&.authorized?
   end
 
   def self.verify_request(request, options = {}, &block)