module SwitchConnection::Model::MonkeyPatch

Public Instance Methods

cache(&block) click to toggle source
Calls superclass method
# File lib/switch_connection/model.rb, line 152
def cache(&block)
  if switch_point_proxy
    switch_point_proxy.cache(&block)
  else
    super
  end
end
connection() click to toggle source
Calls superclass method
# 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
uncached(&block) click to toggle source
Calls superclass method
# File lib/switch_connection/model.rb, line 160
def uncached(&block)
  if switch_point_proxy
    switch_point_proxy.uncached(&block)
  else
    super
  end
end