lib/twiauth/client.rb in twiauth-1.0.0.rc1 vs lib/twiauth/client.rb in twiauth-1.0.0.rc2
- old
+ new
@@ -12,11 +12,11 @@
# connect to the twitter api
#
# @client = TwiAuth::Client.new( {:key => @consumer_key, :secret => @consumer_secret})
#
def initialize(consumer, options = {})
- # raise "options are nil" if options.nil?
- self.access_token = nil # options[:access_token]
+ raise "options are nil" if options.nil?
+ self.access_token = options[:access_token]
if self.access_token.nil?
raise "consumer could not be nil!" if consumer.nil?
self.consumer = connect(consumer['key'], consumer['secret'])
end
end
\ No newline at end of file