diff --git a/lib/rails_warden/engine.rb b/lib/rails_warden/engine.rb
index <HASH>..<HASH> 100644
--- a/lib/rails_warden/engine.rb
+++ b/lib/rails_warden/engine.rb
@@ -2,6 +2,6 @@ require 'rails_warden/compat'
 
 module RailsWarden
   class Engine < ::Rails::Engine
-    config.eager_load_paths += Dir["#{config.root}/lib/**/"]
+    paths.add 'lib', eager_load: true
   end
 end
\ No newline at end of file
Updated engine rb to fix mounting issue