I have two similar actions like below.
create :create do
change manage_relationship(:common1)
change manage_relationship(:common2)
change manage_relationship(:create_only)
end
update :update do
change manage_relationship(:common1)
change manage_relationship(:common2)
change manage_relationship(:update_only)
end
Yeah, I can use global changes
section to refactor these actions,
but then I cannot use AshPhoenix.Form auto?: true.
How can I refactor this?
Just use global changes
and set form option manually?