Retrospring/config/initializers/omniauth.rb

8 lines
233 B
Ruby
Raw Normal View History

2014-12-12 12:42:50 -08:00
Rails.application.config.middleware.use OmniAuth::Builder do
2022-01-05 09:32:30 -08:00
APP_CONFIG.fetch('sharing').each do |service, opts|
if opts['enabled']
provider service.to_sym, opts['consumer_key'], opts['consumer_secret']
2015-01-12 15:12:48 -08:00
end
2014-12-12 12:42:50 -08:00
end
2022-01-05 09:32:30 -08:00
end