# File lib/oauth/models/consumers/token.rb, line 25 25: def consumer 26: @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],credentials[:options] 27: end
# File lib/oauth/models/consumers/token.rb, line 33 33: def create_from_request_token(user,token,secret,oauth_verifier) 34: request_token=OAuth::RequestToken.new consumer,token,secret 35: options={} 36: options[:oauth_verifier]=oauth_verifier if oauth_verifier 37: access_token=request_token.get_access_token options 38: create :user_id=>user.id,:token=>access_token.token,:secret=>access_token.secret 39: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.