Class: CouchRest::Database

Inherits:
Object show all
Defined in:
lib/couchrest/support/couchrest.rb

Instance Method Summary collapse

Instance Method Details

#clear_extended_doc_fresh_cacheObject

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!