Add letter opener web
This commit is contained in:
parent
d647f6433a
commit
f97d4ca0f1
3 changed files with 7 additions and 0 deletions
1
Gemfile
1
Gemfile
|
|
@ -232,6 +232,7 @@ group :development do
|
||||||
gem 'rubocop-rspec'
|
gem 'rubocop-rspec'
|
||||||
# to open mails
|
# to open mails
|
||||||
gem 'letter_opener'
|
gem 'letter_opener'
|
||||||
|
gem 'letter_opener_web'
|
||||||
# as deployment system
|
# as deployment system
|
||||||
gem 'mina'
|
gem 'mina'
|
||||||
# as debugger on error pages
|
# as debugger on error pages
|
||||||
|
|
|
||||||
|
|
@ -265,6 +265,10 @@ GEM
|
||||||
rails (>= 4.2.0)
|
rails (>= 4.2.0)
|
||||||
letter_opener (1.7.0)
|
letter_opener (1.7.0)
|
||||||
launchy (~> 2.2)
|
launchy (~> 2.2)
|
||||||
|
letter_opener_web (1.4.0)
|
||||||
|
actionmailer (>= 3.2)
|
||||||
|
letter_opener (~> 1.0)
|
||||||
|
railties (>= 3.2)
|
||||||
listen (3.1.5)
|
listen (3.1.5)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
|
@ -665,6 +669,7 @@ DEPENDENCIES
|
||||||
json-schema
|
json-schema
|
||||||
leaflet-rails
|
leaflet-rails
|
||||||
letter_opener
|
letter_opener
|
||||||
|
letter_opener_web
|
||||||
mina
|
mina
|
||||||
mini_magick
|
mini_magick
|
||||||
money-rails
|
money-rails
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
Osem::Application.routes.draw do
|
Osem::Application.routes.draw do
|
||||||
|
mount LetterOpenerWeb::Engine, at: '/letter_opener' if Rails.env.development?
|
||||||
|
|
||||||
constraints DomainConstraint do
|
constraints DomainConstraint do
|
||||||
get '/', to: 'conferences#show'
|
get '/', to: 'conferences#show'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue