Module: SwitchConnection::Model::MonkeyPatch
- Defined in:
- lib/switch_connection/model.rb
Instance Method Summary collapse
Instance Method Details
#cache(&block) ⇒ Object
127 128 129 130 131 132 133 |
# File 'lib/switch_connection/model.rb', line 127 def cache(&block) if switch_point_proxy switch_point_proxy.cache(&block) else super end end |
#connection ⇒ Object
117 118 119 120 121 122 123 124 125 |
# File 'lib/switch_connection/model.rb', line 117 def connection if switch_point_proxy connection = switch_point_proxy.connection connection.connection_name = switch_point_name connection else super end end |
#uncached(&block) ⇒ Object
135 136 137 138 139 140 141 |
# File 'lib/switch_connection/model.rb', line 135 def uncached(&block) if switch_point_proxy switch_point_proxy.uncached(&block) else super end end |