Skip to content

Attach file directly to "store" storage? #640

Answered by janko
Tao-Galasse asked this question in Q&A
Discussion options

You must be logged in to vote

You can bypass cache by using the attacher directly – https://shrinerb.com/docs/attacher#attaching-stored.

photo.image_attacher.attach(file) # goes to store
photo.image_attacher.assign(file) # goes to cache (called by `photo.image = ...`)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@Tao-Galasse
Comment options

@davidwessman
Comment options

@Tao-Galasse
Comment options

Comment options

You must be logged in to vote
3 replies
@Tao-Galasse
Comment options

@janko
Comment options

@jrochkind
Comment options

Answer selected by Tao-Galasse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants