Module: SwitchPoint::Model::MonkeyPatch

Defined in:
lib/switch_point/model.rb

Instance Method Summary collapse

Instance Method Details

#cache(&block) ⇒ Object



97
98
99
100
101
102
103
# File 'lib/switch_point/model.rb', line 97

def cache(&block)
  if switch_point_proxy
    switch_point_proxy.cache(&block)
  else
    super
  end
end

#connectionObject



89
90
91
92
93
94
95
# File 'lib/switch_point/model.rb', line 89

def connection
  if switch_point_proxy
    switch_point_proxy.connection
  else
    super
  end
end

#uncached(&block) ⇒ Object



105
106
107
108
109
110
111
# File 'lib/switch_point/model.rb', line 105

def uncached(&block)
  if switch_point_proxy
    switch_point_proxy.uncached(&block)
  else
    super
  end
end