equivalent / copy_carrierwave_file

Copy Carrierwave files between records
MIT License
35 stars 17 forks source link

support array of uploaders #12

Open megatux opened 4 years ago

megatux commented 4 years ago

Carriewave supports a list of resources as uploaders e.g. mount_uploaders :images, SomeUploader I need to move several separated uploader attributes to a new attribute defined as a list

  mount_uploader :icon, IconUploader
  mount_uploader :foo_icon, FooIconUploader
  mount_uploader :bar_icon, BarIconUploader
  mount_uploaders :icons, ImageUploader

...

# want to copy all diff. icons to the new list, something like
icons << icon
icons << foo_icon
icons << bar_icon
equivalent commented 4 years ago

I'm sorry I will not be much help with this. This gem was really just a quick win solution for 90% of easy cases where only two fields were needed

:disappointed:

I would advise you to check the sourcecode of this gem how I'm dealing with this and create custom solution (...or create PR to this gem - PRs are always welcome)

@megatux