lib/tw/conf.rb in tw-0.5.2 vs lib/tw/conf.rb in tw-1.0.0
- old
+ new
@@ -69,11 +69,11 @@
self['twitter_config']['last_updated_at']+60*60*24 > Time.now.to_i and
!force_update
return
end
self['twitter_config'] = {}
- self['twitter_config']['short_url_length'] = Twitter::configuration.short_url_length
- self['twitter_config']['short_url_length_https'] = Twitter::configuration.short_url_length_https
+ self['twitter_config']['short_url_length'] = Tw::Client.client.configuration.short_url_length
+ self['twitter_config']['short_url_length_https'] = Tw::Client.client.configuration.short_url_length_https
self['twitter_config']['last_updated_at'] = Time.now.to_i
self.save
end
private