Class: CouchRest::Database
- Inherits:
-
Object
- Object
- CouchRest::Database
- Defined in:
- lib/couchrest/model/support/couchrest.rb
Instance Method Summary collapse
-
#clear_model_fresh_cache ⇒ Object
If the database is deleted, ensure that the design docs will be refreshed.
- #delete! ⇒ Object
- #delete_orig! ⇒ Object
Instance Method Details
#clear_model_fresh_cache ⇒ Object
If the database is deleted, ensure that the design docs will be refreshed.
13 14 15 |
# File 'lib/couchrest/model/support/couchrest.rb', line 13 def clear_model_fresh_cache ::CouchRest::Model::Base.subclasses.each{|klass| klass.req_design_doc_refresh if klass.respond_to?(:req_design_doc_refresh)} end |
#delete! ⇒ Object
7 8 9 10 |
# File 'lib/couchrest/model/support/couchrest.rb', line 7 def delete! clear_model_fresh_cache delete_orig! end |
#delete_orig! ⇒ Object
6 |
# File 'lib/couchrest/model/support/couchrest.rb', line 6 alias :delete_orig! :delete! |