]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_helper.rb
Fix whitespace in changeset element lists
[rails.git] / app / helpers / user_helper.rb
index c8a80588ca6a830ddb9b1b9c48c6cfc4b02461f0..3554980b84fc37fa53e7f23f797c2a401f364455 100644 (file)
@@ -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"]