Skip to content

Commit

Permalink
Change from Launchy.open to Launchy::Browser.run
Browse files Browse the repository at this point in the history
  • Loading branch information
fedesoria committed Sep 8, 2011
1 parent f78ad39 commit 17df0b8
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 17df0b8

Please sign in to comment.