summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJan-Willem van der Meer <mail@jewilmeer.nl>2014-10-14 09:22:59 +0200
committerJan-Willem van der Meer <mail@jewilmeer.nl>2014-10-14 09:31:06 +0200
commitfc5bfd1dc1c963d018d4de61b03c5ba28aafcd18 (patch)
treedf92598d01b0f93ebefed6f90abba24d2cd09983 /config
parent93505f7d04cfbbc9565dc5759dbeb768515520e7 (diff)
downloadgitlab-ce-fc5bfd1dc1c963d018d4de61b03c5ba28aafcd18.tar.gz
Move dynamic omniauth declarations to initializer
Diffstat (limited to 'config')
-rw-r--r--config/initializers/7_omniauth.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/7_omniauth.rb b/config/initializers/7_omniauth.rb
index 1f569dbe91c..22e2d740fdc 100644
--- a/config/initializers/7_omniauth.rb
+++ b/config/initializers/7_omniauth.rb
@@ -2,3 +2,8 @@ module OmniAuth::Strategies
server = Gitlab.config.ldap.servers.first
const_set(server.provider_class, Class.new(LDAP))
end
+
+OmniauthCallbacksController.class_eval do
+ server = Gitlab.config.ldap.servers.first
+ alias_method server.provider_name, :ldap
+end \ No newline at end of file