-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connect to writing database during thumbnail generation
In a multi db setup where you have a reading and a writing database we need to make sure that we are using the writing database. This is necessary, because we are writing (caching) picture thumbnails in a GET request. Usually Rails would handle this for us on POST, PATCH/PUT and DELETE requests. ActiveStorage does the same thing to support multi database setups. Closes #2428
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters