diff --git a/app/models/organization.rb b/app/models/organization.rb index b9aaf051..846bc3ee 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -94,7 +94,7 @@ def valid_slug? # slug must not be an existing route (/org/new etc) def logo_path if self.logo.attached? - 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) else 'missing.png' end @@ -105,7 +105,7 @@ def logo_path def org_logo if self.logo.attached? - self.logo.variant(resize: '100x100') + self.logo.variant(resize_to_fill: [100, nil]) else 'missing.png' end