Module: Crspec::Rails::DatabaseIsolation::ConnectionHandoff
- Defined in:
- lib/crspec/rails/database_isolation.rb
Instance Method Summary collapse
- #checkin(conn, *args) ⇒ Object
- #connection(*args) ⇒ Object
- #lease_connection(*args) ⇒ Object
- #release_connection(*args) ⇒ Object
Instance Method Details
#checkin(conn, *args) ⇒ Object
183 184 185 186 187 |
# File 'lib/crspec/rails/database_isolation.rb', line 183 def checkin(conn, *args) return if DatabaseIsolation.handoff_connection(self) == conn super end |
#connection(*args) ⇒ Object
173 174 175 |
# File 'lib/crspec/rails/database_isolation.rb', line 173 def connection(*args) DatabaseIsolation.handoff_connection(self) || super end |
#lease_connection(*args) ⇒ Object
169 170 171 |
# File 'lib/crspec/rails/database_isolation.rb', line 169 def lease_connection(*args) DatabaseIsolation.handoff_connection(self) || super end |
#release_connection(*args) ⇒ Object
177 178 179 180 181 |
# File 'lib/crspec/rails/database_isolation.rb', line 177 def release_connection(*args) return if DatabaseIsolation.handoff_connection(self) super end |