Add letter_opener_web
to present emails in the browser in development mode. Using letter_opener in combination with Vagrant does not work because it's not possible to launch a web browser in your Vagrant box. Fixes #817.
This commit is contained in:
parent
c5c392d4c7
commit
2dad051ab9
5 changed files with 20 additions and 0 deletions
|
|
@ -4,6 +4,9 @@ Osem::Application.configure do
|
|||
# Use letter_opener
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
|
||||
# Use letter_opener_web for Vagrant (launchy won't work)
|
||||
config.action_mailer.delivery_method = ENV['USER'] == 'vagrant' ? :letter_opener_web : :letter_opener
|
||||
|
||||
# In the development environment your application's code is reloaded on
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the web server when you make code changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue