Sha256: 56a10e8322b26edb68d6313a612b75d74cfb33298bf576dcc0eba924d2dbe616

Contents?: true

Size: 211 Bytes

Versions: 12

Compression:

Stored size: 211 Bytes

Contents

module EmailSpec::MailExt
  def default_part
    @default_part ||= html_part || text_part || self
  end

  def default_part_body
    default_part.body
  end
end

Mail::Message.send(:include, EmailSpec::MailExt)

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
email_spec-2.0.0 lib/email_spec/mail_ext.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/email_spec-1.6.0/lib/email_spec/mail_ext.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/email_spec-1.6.0/lib/email_spec/mail_ext.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/email_spec-1.6.0/lib/email_spec/mail_ext.rb
email_spec-1.6.0 lib/email_spec/mail_ext.rb
email_spec-1.5.0 lib/email_spec/mail_ext.rb
email_spec-1.4.0 lib/email_spec/mail_ext.rb
gardelea-email_spec-1.3.0 lib/email_spec/mail_ext.rb
email_spec-1.0.1 lib/email_spec/mail_ext.rb
email_spec-1.2.1 lib/email_spec/mail_ext.rb
email_spec-1.2.0 lib/email_spec/mail_ext.rb
email_spec-1.1.1 lib/email_spec/mail_ext.rb