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
When using a belongs_to field inside attach_fields
I'm assuming it's because the join table record does not exist at that point? That's my guess anyway!
attach_fields:
attach_fields: -> {
field :role, as: :text
field :companyable_type, as: :hidden,
default: "Attraction" # Hardcode type to ensure the polymorphic has_many :through works.
field :model, as: :belongs_to, use_resource: Avo::Resources::Model
}
Describe the bug
When using a
belongs_to
field insideattach_fields
I'm assuming it's because the join table record does not exist at that point? That's my guess anyway!
attach_fields
:Companyable:
Model:
The text was updated successfully, but these errors were encountered: