Skip to content

Commit

Permalink
Merge pull request couchrest#75 from mig-hub/fix-examples
Browse files Browse the repository at this point in the history
Use _doc suffix in examples for delete and save.
  • Loading branch information
samlown committed Jul 31, 2012
2 parents 1f7001b + eb65981 commit 2ed0885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/word_count/word_count.rb
Expand Up @@ -28,7 +28,7 @@
while line = file.gets
lines << line
if lines.length > 10
db.save({
db.save_doc({
:title => title,
:chunk => chunk,
:text => lines.join('')
Expand Down
4 changes: 2 additions & 2 deletions examples/word_count/word_count_views.rb
Expand Up @@ -16,9 +16,9 @@
}'
}

db.delete db.get("_design/word_count") rescue nil
db.delete_doc db.get("_design/word_count") rescue nil

db.save({
db.save_doc({
"_id" => "_design/word_count",
:views => {
:words => word_count
Expand Down

0 comments on commit 2ed0885

Please sign in to comment.