Skip to content

Commit

Permalink
Update logo resize calls to new convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Sep 20, 2024
1 parent 3e89380 commit 5f8fb27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5f8fb27

Please sign in to comment.