Update gravatar methods to check for Active Storage images
[rails.git] / lib / rich_text.rb
index 2b3e07d..1de7b88 100644 (file)
@@ -37,7 +37,7 @@ module RichText
           link_size += link.content.length
         end
 
-        link_proportion = link_size.to_f / doc.content.length.to_f
+        link_proportion = link_size.to_f / doc.content.length
       end
 
       spammy_phrases = SPAMMY_PHRASES.count do |phrase|