Sha256: 0244dd0c336dc891be36df2bb866c6da29924107c113e2bc906da89c959bf1e7

Contents?: true

Size: 415 Bytes

Versions: 14

Compression:

Stored size: 415 Bytes

Contents

require 'letter_opener/delivery_method'

module LetterOpenerWeb
  class DeliveryMethod < LetterOpener::DeliveryMethod
    def deliver!(mail)
      location = File.join(settings[:location], "#{Time.now.to_i}_#{Digest::SHA1.hexdigest(mail.encoded)[0..6]}")
      messages = LetterOpener::Message.rendered_messages(location, mail)
      # Launchy.open(URI.parse(URI.escape(messages.first.filepath)))
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
letter_opener_web-1.3.0 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.2.3 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.2.2 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.2.1 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.2.0 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.1.3 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.1.2 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.1.1 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.1.0 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.0.3 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.0.2 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.0.1 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.0.0 lib/letter_opener_web/delivery_method.rb
letter_opener_web-1.0.0.rc3 lib/letter_opener_web/delivery_method.rb