Class: ActiveRecord::ConnectionAdapters::SQLServerAdapter
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::SQLServerAdapter
- Includes:
- SqlServerMirroring
- Defined in:
- lib/activerecord-sqlserver-adapter-mirroring/mirroring.rb
Instance Method Summary collapse
Instance Method Details
#connect_with_mirroring ⇒ Object
72 73 74 75 76 77 |
# File 'lib/activerecord-sqlserver-adapter-mirroring/mirroring.rb', line 72 def connect_with_mirroring return connect_without_mirroring unless mirror_defined? connect_without_mirroring rescue connect_to_mirror connect_to_mirror if @auto_connecting && !active? @connection end |