Skip to content

Commit

Permalink
Fixing wrong object being passed to select()
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Silva authored and clarete committed Sep 10, 2010
1 parent f937586 commit 1af7346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couchdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function create_document(schema)
local obj = delegate(Document)
if schema.id then
obj.id = schema.id
obj.schema = select(obj, function(v,k) return k ~= 'id' end)
obj.schema = select(schema, function(v,k) return k ~= 'id' end)
else
obj.schema = schema
end
Expand Down

0 comments on commit 1af7346

Please sign in to comment.