File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
activerecord/lib/active_record/connection_adapters/abstract Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,8 @@ def query_cache_enabled
174
174
end
175
175
176
176
# Enable the query cache within the block.
177
- def cache ( &)
178
- pool . enable_query_cache ( &)
177
+ def cache ( &block )
178
+ pool . enable_query_cache ( &block )
179
179
end
180
180
181
181
def enable_query_cache!
@@ -186,8 +186,8 @@ def enable_query_cache!
186
186
#
187
187
# Set <tt>dirties: false</tt> to prevent query caches on all connections from being cleared by write operations.
188
188
# (By default, write operations dirty all connections' query caches in case they are replicas whose cache would now be outdated.)
189
- def uncached ( dirties : true , &)
190
- pool . disable_query_cache ( dirties : dirties , &)
189
+ def uncached ( dirties : true , &block )
190
+ pool . disable_query_cache ( dirties : dirties , &block )
191
191
end
192
192
193
193
def disable_query_cache!
You can’t perform that action at this time.
0 commit comments