Class: CouchRest::Database
Instance Method Summary collapse
-
#clear_extended_doc_fresh_cache ⇒ Object
If the database is deleted, ensure that the design docs will be refreshed.
- #delete! ⇒ Object
- #delete_old! ⇒ Object
Instance Method Details
#clear_extended_doc_fresh_cache ⇒ Object
If the database is deleted, ensure that the design docs will be refreshed.
50 51 52 |
# File 'lib/couchrest/support/couchrest.rb', line 50 def clear_extended_doc_fresh_cache ::CouchRest::ExtendedDocument.subclasses.each{|klass| klass.req_design_doc_refresh if klass.respond_to?(:req_design_doc_refresh)} end |
#delete! ⇒ Object
44 45 46 47 |
# File 'lib/couchrest/support/couchrest.rb', line 44 def delete! clear_extended_doc_fresh_cache delete_old! end |
#delete_old! ⇒ Object
43 |
# File 'lib/couchrest/support/couchrest.rb', line 43 alias :delete_old! :delete! |