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

espen opened this Issue Jul 15, 2013 · 1 comment


None yet
1 participant

espen commented Jul 15, 2013

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

See failing test at

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