File tree Expand file tree Collapse file tree
lib/active_record/connection_adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def supports_migrations?
111111 # includes checking whether the database is actually capable of
112112 # responding, i.e. whether the connection isn't stale.
113113 def active?
114- @unconfigured_connection . connected?
114+ @unconfigured_connection & .connected?
115115 end
116116
117117 # Disconnects from the database if already connected, and establishes a
@@ -133,7 +133,7 @@ def reconnect!
133133 # Disconnects from the database if already connected. Otherwise, this
134134 # method does nothing.
135135 def disconnect!
136- @unconfigured_connection . disconnect if @unconfigured_connection . connected?
136+ @unconfigured_connection . disconnect if @unconfigured_connection & .connected?
137137 end
138138
139139 # Build a new column object from the given options. Effectively the same
You can’t perform that action at this time.
0 commit comments