Retrospring/config/initializers/omniauth.rb

7 lines
304 B
Ruby
Raw Normal View History

2014-12-12 12:42:50 -08:00
Rails.application.config.middleware.use OmniAuth::Builder do
2015-01-12 15:12:48 -08:00
%w(facebook twitter tumblr).each do |service|
if APP_CONFIG['sharing'][service]['enabled']
provider service.to_sym, APP_CONFIG['sharing'][service]['consumer_key'], APP_CONFIG['sharing'][service]['consumer_secret']
end
2014-12-12 12:42:50 -08:00
end
end