Method: SwitchConnection::Model::MonkeyPatch#connection

Defined in:
lib/switch_connection/model.rb

#connectionObject



142
143
144
145
146
147
148
149
150
# File 'lib/switch_connection/model.rb', line 142

def connection
  if switch_point_proxy
    connection = switch_point_proxy.connection
    connection.connection_name = "#{switch_point_name} #{switch_point_proxy.mode}"
    connection
  else
    super
  end
end