X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/113c32f65e2018fa93e41c1599f2bb1f19ee3826..f0764d3ecae3aa9251eadff96990f4afe530924d:/app/helpers/user_helper.rb?ds=sidebyside diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index c8a80588c..3554980b8 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -73,7 +73,7 @@ module UserHelper if user.avatar.variable? variant = user.avatar.variant(variant_options) # https://stackoverflow.com/questions/61893089/get-metadata-of-active-storage-variant/67228171 - if variant.processed? + if variant.send(:processed?) metadata = variant.processed.send(:record).image.blob.metadata if metadata["width"] options[:width] = metadata["width"]