Skip to content

Instantly share code, notes, and snippets.

@Lytol Lytol/gist:20490
Created Oct 28, 2008

Embed
What would you like to do?
diff --git a/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb b/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
index 938051c..ed3246f 100644
--- a/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
+++ b/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
@@ -9,7 +9,11 @@ module ActiveReload
class ConnectionProxy
def initialize(master, slave)
@slave = slave.connection
+ @slave.instance_eval { @connection.reconnect = true }
+
@master = master.connection
+ @master.instance_eval { @connection.reconnect = true }
+
@current = @slave
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.