Skip to content

Commit

Permalink
Install letter_opener gem for development
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigler committed Feb 29, 2024
1 parent b1dc66f commit c082c58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ group :development do

gem "brakeman"
gem "bundler-audit"
gem "letter_opener"
gem "rails_live_reload"

gem "rubocop", ">= 1.25.1", require: false
Expand Down
7 changes: 6 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ GEM
activesupport (>= 5.0.0)
json (2.7.1)
language_server-protocol (3.17.0.3)
launchy (2.5.2)
addressable (~> 2.8)
letter_opener (1.9.0)
launchy (>= 2.2, < 3)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
Expand Down Expand Up @@ -371,7 +375,7 @@ GEM
railties (>= 6.0.0)
tailwindcss-rails (2.3.0-x86_64-linux)
railties (>= 6.0.0)
thor (1.3.0)
thor (1.3.1)
tilt (2.3.0)
timeout (0.4.1)
turbo-rails (2.0.4)
Expand Down Expand Up @@ -420,6 +424,7 @@ DEPENDENCIES
guard-minitest
importmap-rails
jbuilder
letter_opener
litestack
minitest-reporters
pry-rails
Expand Down
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

Rails.application.configure do
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = true
# Settings specified here will take precedence over those in config/application.rb.

# In the development environment your application's code is reloaded any time
Expand Down

0 comments on commit c082c58

Please sign in to comment.