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.



13
14
15
# File 'lib/couchrest/support/couchrest.rb', line 13

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



7
8
9
10
# File 'lib/couchrest/support/couchrest.rb', line 7

def delete!
  clear_extended_doc_fresh_cache
  delete_old!
end

#delete_old!Object



6
# File 'lib/couchrest/support/couchrest.rb', line 6

alias :delete_old! :delete!