added OmniAuth initializer

This commit is contained in:
nilsding 2014-12-12 21:42:50 +01:00
parent 6d23ed5dcd
commit 12180bf1f2
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
Rails.application.config.middleware.use OmniAuth::Builder do
if APP_CONFIG['sharing']['twitter']['enabled']
provider :twitter, APP_CONFIG['sharing']['twitter']['consumer_key'], APP_CONFIG['sharing']['twitter']['consumer_secret']
end
end