diff options
author | George Claghorn <george@basecamp.com> | 2019-01-24 11:46:42 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2019-01-24 11:46:42 -0500 |
commit | c1e949e9e618f75dc446ffa584c3b441c48714b1 (patch) | |
tree | 3986e58a1759ce3954c7df7c3d8a9b30937db839 /tasks | |
parent | 1fecebae31029cf2287f2bae88e8730f00569778 (diff) | |
download | rails-c1e949e9e618f75dc446ffa584c3b441c48714b1.tar.gz rails-c1e949e9e618f75dc446ffa584c3b441c48714b1.tar.bz2 rails-c1e949e9e618f75dc446ffa584c3b441c48714b1.zip |
Prefer ImageProcessing's resize_to_limit macro over resize_to_fit
Don't upsize images smaller than the specified dimensions.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/release.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/release.rb b/tasks/release.rb index 6784330fd6..2fdcea9d12 100644 --- a/tasks/release.rb +++ b/tasks/release.rb @@ -218,7 +218,7 @@ namespace :all do <p> <% if @user.avatar.attached? -%> - <%= image_tag @user.avatar.representation(resize_to_fit: [500, 500]) %> + <%= image_tag @user.avatar.representation(resize_to_limit: [500, 500]) %> <% end -%> </p> CODE |