summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2014-12-04 12:55:37 +0200
committerValery Sizov <vsv2711@gmail.com>2014-12-04 13:03:55 +0200
commitb56b96d438c92981cd5c0f5e2f4b23d3799a3bd3 (patch)
treee38453f64d929b2eb9d24f3630a5425b98d7343e /app/helpers
parent3a5ed5260b24051939575d1934ce9b8392cac09f (diff)
downloadgitlab-ce-b56b96d438c92981cd5c0f5e2f4b23d3799a3bd3.tar.gz
added helper
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/oauth_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/oauth_helper.rb b/app/helpers/oauth_helper.rb
index 7024483b8b3..df18db71c84 100644
--- a/app/helpers/oauth_helper.rb
+++ b/app/helpers/oauth_helper.rb
@@ -16,4 +16,8 @@ module OauthHelper
[:twitter, :github, :google_oauth2].include?(name.to_sym)
end
end
+
+ def additional_providers
+ enabled_oauth_providers.reject{|provider| provider.to_s.starts_with?('ldap')}
+ end
end