Module: SwitchPoint::Model::MonkeyPatch

Defined in:
lib/switch_point/model.rb

Instance Method Summary collapse

Instance Method Details

#cache(&block) ⇒ Object



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

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

#connectionObject



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

def connection
  if switch_point_proxy
    switch_point_proxy.connection
  else
    super
  end
end

#uncached(&block) ⇒ Object



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

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