Skip to content

Commit

Permalink
Set up letter_opener
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Mar 23, 2017
1 parent a80f358 commit 7f4cbe1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ end

group :development do
gem 'guard-rspec', require: false
gem 'letter_opener'
gem 'listen', '~> 3.0.5'
gem 'overcommit', require: false
gem 'reek', require: false
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ GEM
jwt (1.5.6)
launchy (2.4.3)
addressable (~> 2.3)
letter_opener (1.4.1)
launchy (~> 2.2)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
Expand Down Expand Up @@ -359,6 +361,7 @@ DEPENDENCIES
jbuilder (~> 2.5)
jquery-rails
launchy
letter_opener
listen (~> 3.0.5)
omniauth-vkontakte
overcommit
Expand Down
7 changes: 3 additions & 4 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
config.cache_store = :null_store
end

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false

config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down

0 comments on commit 7f4cbe1

Please sign in to comment.