Skip to content

Instantly share code, notes, and snippets.

@alea12
Created November 25, 2013 07:12
Show Gist options
  • Save alea12/7637459 to your computer and use it in GitHub Desktop.
Save alea12/7637459 to your computer and use it in GitHub Desktop.
Twitter gem のバージョンをあげたら Twitter.configure ができなくなってた
# Global configuration has been removed, as it was not threadsafe.
# Without this, you will face an error saying: NoMethodError: undefined method `configure' for Twitter:Module
client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN"
config.access_token_secret = "YOUR_ACCESS_SECRET"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment