Skip to content

Commit

Permalink
Using right object to set an attribute in the Document data type cons…
Browse files Browse the repository at this point in the history
…tructor

I was confused with all the crap about inheritance in Lua... but now, I think
I know what I'm doing :)
  • Loading branch information
clarete committed Sep 8, 2010
1 parent 3261ff4 commit 7c33d86
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 @@ -52,7 +52,7 @@ function Document:new(schema)
self.__index = self
self.schema = schema
if schema.id ~= nil then
self.id = schema.id
o.id = schema.id
end
return o
end
Expand Down

0 comments on commit 7c33d86

Please sign in to comment.