summaryrefslogtreecommitdiff
path: root/app/helpers/oauth_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-28 18:00:44 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-28 18:00:44 +0300
commit98cf0ae3384afa34a417766f46a7b3171dc40279 (patch)
tree0cf7132f13580f346e41760f0ed05e3ffbdb065a /app/helpers/oauth_helper.rb
parent07aa6e596318288edcd95bc327489f42021f275f (diff)
downloadgitlab-ce-98cf0ae3384afa34a417766f46a7b3171dc40279.tar.gz
Correct indentation in readme, fixed display of social accounts in profile
Diffstat (limited to 'app/helpers/oauth_helper.rb')
-rw-r--r--app/helpers/oauth_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/oauth_helper.rb b/app/helpers/oauth_helper.rb
index 017c22d9e1f..c0177dacbf8 100644
--- a/app/helpers/oauth_helper.rb
+++ b/app/helpers/oauth_helper.rb
@@ -10,4 +10,10 @@ module OauthHelper
def enabled_oauth_providers
Devise.omniauth_providers
end
+
+ def enabled_social_providers
+ enabled_oauth_providers.select do |name|
+ [:twitter, :github, :google_oauth2].include?(name.to_sym)
+ end
+ end
end