We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c3bbc5 commit fbeca00Copy full SHA for fbeca00
app/models/organization.rb
@@ -98,6 +98,9 @@ def logo_path
98
else
99
'missing.png'
100
end
101
+ rescue ActiveStorage::InvariableError => e
102
+ Rails.logger.error("Could not resize image for organization #{id}: #{e.message}")
103
+ 'missing.png'
104
105
106
def org_logo
config/environments/production.rb
@@ -122,4 +122,4 @@
122
123
config.active_record.cache_versioning = false
124
config.active_storage.variant_processor = :mini_magick
125
-end
+end
0 commit comments