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

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

Closed
espen opened this issue Jul 15, 2013 · 1 comment

Comments

@espen
Copy link

espen commented Jul 15, 2013

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

See failing test at https://github.com/espen/protected_attributes_new_bug

@espen
Copy link
Author

espen commented Mar 10, 2014

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant