You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify and document support for nested fields in ChangeSet #827
I ran into the following issue creating nested fields:
classMyResource < Valkyrie::Resourceattribute:my_setendclassMyChangeSet < Valkyrie::ChangeSetcollection:my_setdoproperty:somethingendendr=MyResource.new(my_set: Struct.new(:something).new('value'))MyChangeSet.new(r)# NameError: undefined local variable or method `build_errors' for #<#<Class:0x000055de3fee2960>:0x000055de403e2a00>
this seems to have something to do with an error in the setup but the NameError isn't helpful to diagnose, and appears to be a Reform bug(???).
i was eventually able to get this working, but it took a lot of trial and error. documenting and testing support for nested ChangeSets would be a huge help.
Activity