don't error when the given directories don't exist
This commit is contained in:
parent
7aaffe5d63
commit
d290357c78
2 changed files with 7 additions and 2 deletions
|
@ -26,8 +26,8 @@ module CouchRest
|
|||
attachdir = File.join(appdir,"_attachments")
|
||||
|
||||
@doc = dir_to_fields(appdir)
|
||||
package_forms(@doc["forms"])
|
||||
package_views(@doc["views"])
|
||||
package_forms(@doc["forms"]) if @doc['forms']
|
||||
package_views(@doc["views"]) if @doc['views']
|
||||
|
||||
docid = "_design/#{appname}"
|
||||
design = @db.get(docid) rescue {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue