Open jakubstraka opened 7 years ago
sorted method works only on decorated/presented objects. But doesn't work as a collection attribute in form (where I'm not able to have decorated object).
sorted
= form.input :images, as: :attachment, collection: form.object.images.sorted
However when skipping as: :attachment I can see that sorted works. So it seems as a bug with simple form custom input?
as: :attachment
@jakubstraka PR with a fix welcome :-)
sorted
method works only on decorated/presented objects. But doesn't work as a collection attribute in form (where I'm not able to have decorated object).= form.input :images, as: :attachment, collection: form.object.images.sorted
However when skipping
as: :attachment
I can see thatsorted
works. So it seems as a bug with simple form custom input?