lib/tw/client/auth.rb in tw-1.0.7 vs lib/tw/client/auth.rb in tw-1.0.8

- old
+ new

@@ -18,11 +18,11 @@ def self.auth(user=nil) user = get_or_regist_user user return Twitter::REST::Client.new do |c| c.consumer_key = Conf['consumer_key'] c.consumer_secret = Conf['consumer_secret'] - c.oauth_token = user['access_token'] - c.oauth_token_secret = user['access_secret'] + c.access_token = user['access_token'] + c.access_token_secret = user['access_secret'] end end def self.get_or_regist_user(user) return user if user.kind_of? Hash