Skip to content

Commit be7185b

Browse files
Merge pull request #41436 from santib/fix-active-storage-sharpening-docs
Fix Upgrading guides [ci skip]
2 parents 96106d8 + 7f7ed5e commit be7185b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/upgrading_ruby_on_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ The default HTTP status code used in `ActionDispatch::SSL` when redirecting non-
235235

236236
When processing variants in Active Storage, it's now required to have the [image_processing gem](https://github.com/janko-m/image_processing) bundled instead of directly using `mini_magick`. Image Processing is configured by default to use `mini_magick` behind the scenes, so the easiest way to upgrade is by replacing the `mini_magick` gem for the `image_processing` gem and making sure to remove the explicit usage of `combine_options` since it's no longer needed.
237237

238-
That said, it's recommended to change the calls to raw `resize` for `image_processing` macros as they also sharpen the thumbnail after resizing. For example, instead of:
238+
For readability, you may wish to change raw `resize` calls to `image_processing` macros. For example, instead of:
239239

240240
```ruby
241241
video.preview(resize: "100x100")

0 commit comments

Comments
 (0)