X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9173dd3192e518671d419cdfac5c51fa5d4f5094..560e79d0ef241cd0dee4cac9f77bb8bba52d1f5c:/app/helpers/user_helper.rb?ds=inline 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"]