mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 00:46:03 +01:00
7 lines
No EOL
304 B
Ruby
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 |