lib/couchrest/mixins/design_doc.rb in norr-couchrest-0.30.4 vs lib/couchrest/mixins/design_doc.rb in norr-couchrest-0.33.01
- old
+ new
@@ -43,9 +43,14 @@
def refresh_design_doc
reset_design_doc
save_design_doc
end
+ def refresh_design_doc_on(db)
+ reset_design_doc
+ save_design_doc_on(db)
+ end
+
# Save the design doc onto the default database, and update the
# design_doc attribute
def save_design_doc
reset_design_doc unless design_doc_fresh
self.design_doc = update_design_doc(design_doc)
\ No newline at end of file