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:
Christian Bruckmayer 2016-03-05 14:09:22 +01:00
parent c5c392d4c7
commit 2dad051ab9
5 changed files with 20 additions and 0 deletions

View file

@ -10,6 +10,11 @@ Osem::Application.routes.draw do
path: 'accounts'
end
# Use letter_opener_web to open mails in browser (e.g. necessary for Vagrant)
if Rails.env.development?
mount LetterOpenerWeb::Engine, at: "/letter_opener"
end
resources :users, except: [:new, :index, :create, :destroy]
namespace :admin do