retrospring/config/initializers/omniauth.rb
2015-01-13 00:12:48 +01:00

7 lines
No EOL
304 B
Ruby

Rails.application.config.middleware.use OmniAuth::Builder do
%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
end
end