diff --git a/Gemfile b/Gemfile index b7f117f..949d68f 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index 4507a7c..19b5c6e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -359,6 +361,7 @@ DEPENDENCIES jbuilder (~> 2.5) jquery-rails launchy + letter_opener listen (~> 3.0.5) omniauth-vkontakte overcommit diff --git a/config/environments/development.rb b/config/environments/development.rb index d9db51f..b6756e5 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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