Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 508 Bytes
Rails.application.config.middleware.use OmniAuth::Builder do
if ENV['CONSUMER_KEY'].blank? || ENV['CONSUMER_SECRET'].blank?
warn '*' * 80
warn 'WARNING: Missing consumer key or secret. First, register an app with Twitter at'
warn ' to obtain OAuth credentials. Then, start the server'
warn 'with the command: CONSUMER_KEY=abc CONSUMER_SECRET=123 rails server'
warn '*' * 80
provider :twitter, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']
Something went wrong with that request. Please try again.