lib/rom/changeset/associated.rb in rom-changeset-5.0.0 vs lib/rom/changeset/associated.rb in rom-changeset-5.0.1
- old
+ new
@@ -91,9 +91,11 @@
case other
when Changeset
a >> other.command.with_association(assoc).curry(other)
when Associated
a >> other.command.with_association(assoc)
+ when Array
+ raise NotImplementedError, 'Changeset::Associate does not support arrays yet'
else
a.with_association(assoc, parent: other)
end
end
end