--
You received this message because you are subscribed to the Google Groups "Shrine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-shrine+unsubscribe@googlegroups.com.
To post to this group, send email to ruby-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-shrine/7a00330b-3a0a-4bf9-8cd9-db757ac99746%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You should be able to do that with the following:uploaded_file = photo.image_attacher.store!(file)photo.image_attacher.set(uploaded_file)You currently still have to declare the :cache storage, otherwise Shrine will complain, but it won't be used. I think you could just do:Shrine.storages[:cache] = Shrine.storages[:store] = Shrine::Storage::YourStorage.new(...)Kind regards,Janko
On Tue, Jan 30, 2018 at 11:37 PM, <erigia...@gmail.com> wrote:
Hello!
I'm using activerecord plugin and i want to upload my file right into store directly without caching.
How can i do that?
--
You received this message because you are subscribed to the Google Groups "Shrine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-...@googlegroups.com.