Fixing view deleting database option bug
This commit is contained in:
parent
0c008d4bc7
commit
226fe3bf38
2 changed files with 17 additions and 1 deletions
|
@ -92,6 +92,7 @@ module CouchRest
|
|||
|
||||
# Dispatches to any named view.
|
||||
def view(name, query={}, &block)
|
||||
query = query.dup # Modifications made on copy!
|
||||
db = query.delete(:database) || database
|
||||
refresh_design_doc(db)
|
||||
query[:raw] = true if query[:reduce]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue