diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-28 18:00:44 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-28 18:00:44 +0300 |
commit | 98cf0ae3384afa34a417766f46a7b3171dc40279 (patch) | |
tree | 0cf7132f13580f346e41760f0ed05e3ffbdb065a /app/helpers/oauth_helper.rb | |
parent | 07aa6e596318288edcd95bc327489f42021f275f (diff) | |
download | gitlab-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.rb | 6 |
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 |