yet another attempt at images in email

This commit is contained in:
Jeff Atwood 2014-10-21 12:53:14 -07:00
parent 7659d491fd
commit 121426287a

View File

@ -38,7 +38,7 @@ module Email
# having no extra style on email images might work best?
img['width'] = 'auto'
img['height'] = 'auto'
# add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/
end
# ensure all urls are absolute