From c1e949e9e618f75dc446ffa584c3b441c48714b1 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Thu, 24 Jan 2019 11:46:42 -0500 Subject: Prefer ImageProcessing's resize_to_limit macro over resize_to_fit Don't upsize images smaller than the specified dimensions. --- activestorage/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/README.md') diff --git a/activestorage/README.md b/activestorage/README.md index f658b8d542..2886169ca7 100644 --- a/activestorage/README.md +++ b/activestorage/README.md @@ -101,7 +101,7 @@ Variation of image attachment: ```erb <%# Hitting the variant URL will lazy transform the original blob and then redirect to its new service location %> -<%= image_tag user.avatar.variant(resize_to_fit: [100, 100]) %> +<%= image_tag user.avatar.variant(resize_to_limit: [100, 100]) %> ``` ## Direct uploads -- cgit v1.2.3