kind-jewelry-65180
03/18/2023, 5:38 PMtabs do
field :notes, as: :has_many, scope: -> do
query.annotation
end, name: 'Notas'
field :notes, as: :has_many, scope: -> do
query.annotation
end, name: 'Observaciones'
end
But the second field the scope doesnt work, i just a replica of the first has_many fieldlemon-wall-20836
03/18/2023, 5:43 PMlemon-wall-20836
03/18/2023, 5:44 PMruby
tabs do
tab 'Notas' do
field :notes, as: :has_many, scope: -> do
query.annotation
end, name: 'Notas'
end
tab 'Observaciones' do
field :notes, as: :has_many, scope: -> do
query.annotation
end, name: 'Observaciones'
end
end
lemon-wall-20836
03/18/2023, 5:44 PMtab
kind-jewelry-65180
03/18/2023, 6:18 PM