]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/client_application.rb
Format latitudes and longitudes as %7f in XML output
[rails.git] / app / models / client_application.rb
index 156eeafc7989cc15a6d03d504bef6477aa0604e8..152b3912dd24a2c37978d86be1a4e7a532d13b3c 100644 (file)
@@ -18,7 +18,7 @@ class ClientApplication < ActiveRecord::Base
   attr_accessor :token_callback_url
 
   def self.find_token(token_key)
-    token = OauthToken.find_by_token(token_key, :include => :client_application)
+    token = OauthToken.includes(:client_application).find_by(:token => token_key)
     token if token && token.authorized?
   end