Retrospring/config/initializers/omniauth.rb

5 lines
244 B
Ruby
Raw Normal View History

2014-12-12 12:42:50 -08:00
Rails.application.config.middleware.use OmniAuth::Builder do
if APP_CONFIG['sharing']['twitter']['enabled']
provider :twitter, APP_CONFIG['sharing']['twitter']['consumer_key'], APP_CONFIG['sharing']['twitter']['consumer_secret']
end
end