summaryrefslogtreecommitdiff
path: root/lib/extensions/couchrest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/couchrest.rb')
-rw-r--r--lib/extensions/couchrest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/couchrest.rb b/lib/extensions/couchrest.rb
index 6967980..4578926 100644
--- a/lib/extensions/couchrest.rb
+++ b/lib/extensions/couchrest.rb
@@ -69,7 +69,7 @@ module CouchRest
def prepare_directory(dir = '')
dir = Rails.root + 'tmp' + 'designs' + dir
- Dir.mkdir(dir) unless Dir.exists?(dir)
+ Dir.mkdir(dir) unless Dir.exist?(dir)
return dir
end