Use of managed_relationship not clear
I am trying to create an action that will create a Supplier and populate the 2 belongs_to relationships it has. I have tried a default create action with the id fields populated, but they do not get set. I have tried manage_relationship with both ids as action arguments and with records as arguments.
The most recent attempt:
create :new do
argument :company, :uuid do
allow_nil? false
end
argument :account, :uuid do
allow_nil? false
end
change manage_relationship(:company, type: :append_and_remove)
change manage_relationship(:account, type: :append_and_remove)
end
The most recent attempt:
create :new do
argument :company, :uuid do
allow_nil? false
end
argument :account, :uuid do
allow_nil? false
end
change manage_relationship(:company, type: :append_and_remove)
change manage_relationship(:account, type: :append_and_remove)
end
