Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Cannot use :as with .new with child objects - ArgumentError: wrong number of arguments (2 for 0..1) #21

espen opened this Issue · 1 comment

1 participant


1) List has_many items.
2) Using list.items.create({}, :as => :admin) works.
2) Using{}, :as => :admin) works in Rails3 gives error with this gem: 'ArgumentError: wrong number of arguments (2 for 0..1)'

See failing test at

@rafaelfranca rafaelfranca closed this issue from a commit
@rafaelfranca rafaelfranca Fix the CollectionProxy#new method
It was using the default Active Record implementation.

Fixes #21

Great! This makes me think that GitHub should have a "notify me when this commit is included in gem release" feature though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.