We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e89380 commit 5f8fb27Copy full SHA for 5f8fb27
app/models/organization.rb
@@ -94,7 +94,7 @@ def valid_slug? # slug must not be an existing route (/org/new etc)
94
95
def logo_path
96
if self.logo.attached?
97
- Rails.application.routes.url_helpers.rails_representation_url(self.logo.variant(resize: '100x100').processed, only_path: true)
+ Rails.application.routes.url_helpers.rails_representation_url(self.logo.variant(resize_to_fill: [100, nil]).processed, only_path: true)
98
else
99
'missing.png'
100
end
@@ -105,7 +105,7 @@ def logo_path
105
106
def org_logo
107
108
- self.logo.variant(resize: '100x100')
+ self.logo.variant(resize_to_fill: [100, nil])
109
110
111
0 commit comments