Skip to content

Commit

Permalink
Do not submit empty views
Browse files Browse the repository at this point in the history
Change-Id: Ic58b5bd6189b36096c06ea90726ac1ad8049be54
  • Loading branch information
avsej committed Aug 24, 2012
1 parent 55c53f6 commit f301b10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/couchbase/model.rb
Expand Up @@ -203,6 +203,7 @@ def self.ensure_design_document!
end
end
end
doc['views'].delete(name) if view.empty?
end
doc['signature'] = digest.to_s
doc['timestamp'] = mtime
Expand Down

0 comments on commit f301b10

Please sign in to comment.