lib/martinet/impersonation.rb in martinet-0.0.4 vs lib/martinet/impersonation.rb in martinet-0.1.0
- old
+ new
@@ -15,5 +15,11 @@
sign_out!
sign_in!(impersonator)
end
end
end
+
+if Martinet.configuration.enable_impersonation
+ Martinet::Session.class_eval do
+ include Martinet::Impersonation
+ end
+end