Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CouchDB - Custom Associations - Error #2

Open
ghost opened this issue Jun 16, 2010 · 1 comment
Open

CouchDB - Custom Associations - Error #2

ghost opened this issue Jun 16, 2010 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 16, 2010

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
Copy link
Collaborator

jweiss commented Jun 17, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant