mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 03:56:06 +01:00
3c58257d21
Resolves #274
7 lines
233 B
Ruby
7 lines
233 B
Ruby
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
APP_CONFIG.fetch('sharing').each do |service, opts|
|
|
if opts['enabled']
|
|
provider service.to_sym, opts['consumer_key'], opts['consumer_secret']
|
|
end
|
|
end
|
|
end
|