Sha256: 03a6d5ad9095e8595f9b7255e5060bc1b95ed7704458b8c4e80f2821f47ceb6f
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
# # Extend CouchRest's normal database delete! method to ensure any caches are # also emptied. Given that this is a rare event, and the consequences are not # very severe, we just completely empty the cache. # module CouchRest::Model module Support module Database def delete! Thread.current[:couchrest_design_cache] = { } super end end end end class CouchRest::Database prepend CouchRest::Model::Support::Database end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchrest_model-2.2.0.beta2 | lib/couchrest/model/support/couchrest_database.rb |