Created
October 14, 2010 19:22
-
-
Save rmehner/626845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Mail | |
class Message | |
def body_html | |
if html_part.present? | |
html_part.body.to_s | |
elsif mime_type == 'text/html' | |
body.to_s | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment