Sha256: 4e447d1ce4e82b1776197448fe2760eb9cb6b5e838b0fd6a0943f15a99446200
Contents?: true
Size: 696 Bytes
Versions: 3
Compression:
Stored size: 696 Bytes
Contents
require 'oauth/controllers/consumer_controller' class OauthConsumersController < ApplicationController include Oauth::Controllers::ConsumerController 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 def callback super end protected # Change this to decide where you want to redirect user to after callback is finished. # params[:id] holds the service name so you could use this to redirect to various parts # of your application depending on what service you're connecting to. def go_back redirect_to root_url end end
Version data entries
3 entries across 3 versions & 2 rubygems