Skip to content

Instantly share code, notes, and snippets.

@DAddYE
Created February 16, 2012 18:26
Show Gist options
  • Save DAddYE/1846874 to your computer and use it in GitHub Desktop.
Save DAddYE/1846874 to your computer and use it in GitHub Desktop.

Revisions

  1. Davide D'Agostino created this gist Feb 16, 2012.
    7 changes: 7 additions & 0 deletions patch.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # 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