From 62b6194783cbb3af6ffa62342923390fd44bc08a Mon Sep 17 00:00:00 2001 From: Ben Hejkal Date: Thu, 12 Dec 2024 10:32:14 -0600 Subject: [PATCH] add letter_opener in dev --- Gemfile | 1 + Gemfile.lock | 9 +++++++++ config/environments/development.rb | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ac36a27ac..adb55e102 100644 --- a/Gemfile +++ b/Gemfile @@ -99,6 +99,7 @@ group :development, :ci do end group :development, :ci, :test do + gem 'letter_opener' gem 'timecop' gem 'pry' gem 'pry-byebug' diff --git a/Gemfile.lock b/Gemfile.lock index 5a29e372f..356a4cf05 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -145,6 +145,8 @@ GEM carrierwave-aws (1.4.0) aws-sdk-s3 (~> 1.0) carrierwave (>= 0.7, < 2.1) + childprocess (5.1.0) + logger (~> 1.5) chronic (0.10.2) coderay (1.1.3) coercible (1.0.0) @@ -296,6 +298,12 @@ GEM kaminari-core (= 1.2.1) kaminari-core (1.2.1) kdtree (0.3) + launchy (3.0.1) + addressable (~> 2.8) + childprocess (~> 5.0) + letter_opener (1.10.0) + launchy (>= 2.2, < 4) + logger (1.6.2) lograge (0.3.6) actionpack (>= 3) activesupport (>= 3) @@ -559,6 +567,7 @@ DEPENDENCIES js-routes json (>= 2.3.0) kaminari + letter_opener lograge mini_magick nearest_time_zone diff --git a/config/environments/development.rb b/config/environments/development.rb index 1b982534f..d708a06e0 100755 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -34,8 +34,10 @@ # ) # config.action_mailer.delivery_method = :ses + config.action_mailer.delivery_method = :letter_opener + config.action_mailer.perform_deliveries = true + config.action_mailer.default_url_options = { host: 'localhost', port: 5000} - config.action_mailer.delivery_method = Settings.mailer.delivery_method.to_sym config.action_mailer.smtp_settings = { address: Settings.mailer.address, port: Settings.mailer.port } config.action_mailer.smtp_settings['user_name']= Settings.mailer.username if Settings.mailer.username config.action_mailer.smtp_settings['password']= Settings.mailer.password if Settings.mailer.password