[...]
create :create do
primary? true
argument :tags, {:array, :map}
argument :add_tag, :map do
allow_nil? false
end
change manage_relationship(:tags, type: :append_and_remove, on_no_match: :create)
change manage_relationship(:add_tag, :tags, type: :create)
end
[...]
[...]
create :create do
primary? true
argument :tags, {:array, :map}
argument :add_tag, :map do
allow_nil? false
end
change manage_relationship(:tags, type: :append_and_remove, on_no_match: :create)
change manage_relationship(:add_tag, :tags, type: :create)
end
[...]