Class: OauthConsumersController

Inherits:
ApplicationController
  • Object
show all
Includes:
Oauth::Controllers::ConsumerController
Defined in:
lib/generators/oauth_consumer/templates/controller.rb

Instance Method Summary collapse

Methods included from Oauth::Controllers::ConsumerController

#callback2, #callback2_querystring, #destroy, included, #show

Instance Method Details

#callbackObject



15
16
17
# File 'lib/generators/oauth_consumer/templates/controller.rb', line 15

def callback
	super
end

#clientObject



19
20
21
# File 'lib/generators/oauth_consumer/templates/controller.rb', line 19

def client
  super
end

#indexObject



10
11
12
13
# File 'lib/generators/oauth_consumer/templates/controller.rb', line 10

def index
  @consumer_tokens=ConsumerToken.all :conditions=>{:user_id=>current_user.id}
  @services=OAUTH_CREDENTIALS.keys-@consumer_tokens.collect{|c| c.class.service_name}
end