]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_controller.rb
Merge remote-tracking branch 'openstreetmap/pull/1347' into master
[rails.git] / app / controllers / oauth_controller.rb
index 59ebfd631b0075d1279a6738bf55a9278713602c..2e847fcd5915e9b954c85ae5c87774a55e87e0ff 100644 (file)
@@ -27,7 +27,7 @@ class OauthController < ApplicationController
   end
 
   def revoke
   end
 
   def revoke
-    @token = current_user.oauth_tokens.find_by_token params[:token]
+    @token = current_user.oauth_tokens.find_by :token => params[:token]
     if @token
       @token.invalidate!
       flash[:notice] = t("oauth.revoke.flash", :application => @token.client_application.name)
     if @token
       @token.invalidate!
       flash[:notice] = t("oauth.revoke.flash", :application => @token.client_application.name)