Class: CouchRest::Database

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) clear_extended_doc_fresh_cache

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

- (Object) delete!



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

def delete!
  clear_extended_doc_fresh_cache
  delete_old!
end

- (Object) delete_old!



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

alias :delete_old! :delete!