1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 15:05:22 +02:00

Use letter_opener for dev email usage

This commit is contained in:
Josh Pigford 2024-01-01 18:20:41 -06:00
parent d2aee8778f
commit 52857b2920
5 changed files with 16 additions and 2 deletions

View file

@ -61,6 +61,9 @@ group :development do
# Hotwire-based live reloading
gem "hotwire-livereload"
# letter_opener for catching and displaying emails sent during development
gem "letter_opener"
end
group :test do

View file

@ -163,6 +163,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.8.1)
launchy (>= 2.2, < 3)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
@ -333,6 +337,7 @@ DEPENDENCIES
hotwire-livereload
importmap-rails
jbuilder
letter_opener
pg (~> 1.1)
puma (>= 5.0)
rails!

View file

@ -0,0 +1,4 @@
<div class="prose">
<h1>Home</h1>
<p><%= link_to "Sign out", destroy_user_session_path, method: :delete %></p>
</div>

View file

@ -37,11 +37,13 @@ Rails.application.configure do
config.active_storage.service = :local
# Don't care if the mailer can't send.
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

View file

@ -266,7 +266,7 @@ Devise.setup do |config|
# config.navigational_formats = ['*/*', :html, :turbo_stream]
# The default HTTP method used to sign out a resource. Default is :delete.
config.sign_out_via = :delete
config.sign_out_via = :get
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting