]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_clients_controller.rb
Disable buttons while form submission is in progress
[rails.git] / app / controllers / oauth_clients_controller.rb
index f90302894a359d00b7e5c29f09cd8b84e6e34ae3..56f19dbda17845feca7af722d45244b72806aeb0 100644 (file)
@@ -7,7 +7,7 @@ class OauthClientsController < ApplicationController
 
   def index
     @client_applications = @user.client_applications
-    @tokens = @user.oauth_tokens.find :all, :conditions => 'oauth_tokens.invalidated_at is null and oauth_tokens.authorized_at is not null'
+    @tokens = @user.oauth_tokens.authorized
   end
 
   def new