summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-08 10:23:05 +0200
committerAzul <azul@leap.se>2014-07-15 12:12:51 +0200
commitff697316c85f9edc5a568d66f6c92ff6d13862cc (patch)
treea846e46e0a85620f3c95408c59c3e803b4d187c5
parentdc2006af6a571bdebde5647f5b36751f013c772a (diff)
rename warden extension to patch the original
the Warden::SessionSerializer was not getting loaded at all because we had a file by the same name. We want it to get loaded and be patched instead.
-rw-r--r--config/initializers/warden.rb1
-rw-r--r--lib/extensions/warden.rb (renamed from lib/warden/session_serializer.rb)0
2 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/warden.rb b/config/initializers/warden.rb
index 22892b3..43e31ba 100644
--- a/config/initializers/warden.rb
+++ b/config/initializers/warden.rb
@@ -1,4 +1,5 @@
require "warden/session_serializer"
+require "extensions/warden"
require "warden/strategies/secure_remote_password"
Rails.configuration.middleware.use RailsWarden::Manager do |config|
diff --git a/lib/warden/session_serializer.rb b/lib/extensions/warden.rb
index 81d7076..81d7076 100644
--- a/lib/warden/session_serializer.rb
+++ b/lib/extensions/warden.rb