diff --git a/lib/switch_user/rails.rb b/lib/switch_user/rails.rb
index <HASH>..<HASH> 100644
--- a/lib/switch_user/rails.rb
+++ b/lib/switch_user/rails.rb
@@ -1,8 +1,10 @@
 if defined?(Rails)
   if defined? Rails::Engine
-    class Engine < Rails::Engine
-      config.to_prepare do
-        ActionView::Base.send :include, SwitchUserHelper
+    module SwitchUser
+      class Engine < Rails::Engine
+        config.to_prepare do
+          ActionView::Base.send :include, SwitchUserHelper
+        end
       end
     end
   else
Namespace Engine class to prevent  conflicts.