Skip to content

Instantly share code, notes, and snippets.

@DAddYE
Created February 16, 2012 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save DAddYE/1846874 to your computer and use it in GitHub Desktop.
Save DAddYE/1846874 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
@joshdholtz
Copy link

This worked perfectly - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment