Skip to content

Commit

Permalink
Merge pull request ryanb#4 from fedesoria/master
Browse files Browse the repository at this point in the history
Change to Launchy::Browser.run
  • Loading branch information
ryanb committed Sep 8, 2011
2 parents 99ef595 + 17df0b8 commit 59ec1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/letter_opener/delivery_method.rb
Expand Up @@ -9,7 +9,7 @@ def deliver!(mail)
messages = mail.parts.map { |part| Message.new(location, mail, part) }
messages << Message.new(location, mail) if messages.empty?
messages.each { |message| message.render }
Launchy.open("file://#{messages.first.filepath}")
Launchy::Browser.run("file://#{messages.first.filepath}")
end
end
end

0 comments on commit 59ec1ef

Please sign in to comment.