summaryrefslogtreecommitdiff
path: root/vendor/rails/activerecord/lib/active_record/query_cache.rb
Side-by-side diff
Diffstat (limited to 'vendor/rails/activerecord/lib/active_record/query_cache.rb') (more/less context) (ignore whitespace changes)
-rw-r--r--vendor/rails/activerecord/lib/active_record/query_cache.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/rails/activerecord/lib/active_record/query_cache.rb b/vendor/rails/activerecord/lib/active_record/query_cache.rb
deleted file mode 100644
index a8af89f..0000000
--- a/vendor/rails/activerecord/lib/active_record/query_cache.rb
+++ b/dev/null
@@ -1,21 +0,0 @@
-module ActiveRecord
- module QueryCache
- # Enable the query cache within the block if Active Record is configured.
- def cache(&block)
- if ActiveRecord::Base.configurations.blank?
- yield
- else
- connection.cache(&block)
- end
- end
-
- # Disable the query cache within the block if Active Record is configured.
- def uncached(&block)
- if ActiveRecord::Base.configurations.blank?
- yield
- else
- connection.uncached(&block)
- end
- end
- end
-end