retrospring/config/initializers/omniauth.rb

7 lines
304 B
Ruby
Raw Normal View History

2014-12-12 21:42:50 +01:00
Rails.application.config.middleware.use OmniAuth::Builder do
2015-01-13 00:12:48 +01: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 21:42:50 +01:00
end
end