Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Forked from DAddYE/patch.rb
Created February 17, 2012 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdholtz/1854218 to your computer and use it in GitHub Desktop.
Save joshdholtz/1854218 to your computer and use it in GitHub Desktop.
Postmark w/Padrino
# Add me in lib or somewhere
# lib/postmark_patch.rb
Mail::Message.class_eval do
def html?
content_type_without_symbol && content_type_without_symbol.include?('text/html')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment