peritor / simply_stored

A convenience wrapper around CouchDB (using CouchPotato) that supports relations and S3 attachments
Other
140 stars 16 forks source link

CouchDB - Custom Associations - Error #2

Open ghost opened 14 years ago

ghost commented 14 years ago

CouchDB - Custom Associations

class Document
  include SimplyStored::Couch
  belongs_to :creator, :class_name => "User"
  belongs_to :updater, :class_name => "User"
end

d = Document.new
d.creator = User.first

leads to following error : ArgumentError: wrong number of arguments (2 for 1) in `belongs_to'

jweiss commented 14 years ago

Which version of SimplyStored are you using? This feature was just recently committed and is only available in 0.3.4 which i just pushed.