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:
parent
d2aee8778f
commit
52857b2920
5 changed files with 16 additions and 2 deletions
3
Gemfile
3
Gemfile
|
@ -61,6 +61,9 @@ group :development do
|
||||||
|
|
||||||
# Hotwire-based live reloading
|
# Hotwire-based live reloading
|
||||||
gem "hotwire-livereload"
|
gem "hotwire-livereload"
|
||||||
|
|
||||||
|
# letter_opener for catching and displaying emails sent during development
|
||||||
|
gem "letter_opener"
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|
|
@ -163,6 +163,10 @@ GEM
|
||||||
activesupport (>= 5.0.0)
|
activesupport (>= 5.0.0)
|
||||||
json (2.7.1)
|
json (2.7.1)
|
||||||
language_server-protocol (3.17.0.3)
|
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)
|
listen (3.8.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
|
@ -333,6 +337,7 @@ DEPENDENCIES
|
||||||
hotwire-livereload
|
hotwire-livereload
|
||||||
importmap-rails
|
importmap-rails
|
||||||
jbuilder
|
jbuilder
|
||||||
|
letter_opener
|
||||||
pg (~> 1.1)
|
pg (~> 1.1)
|
||||||
puma (>= 5.0)
|
puma (>= 5.0)
|
||||||
rails!
|
rails!
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
<div class="prose">
|
||||||
|
<h1>Home</h1>
|
||||||
|
<p><%= link_to "Sign out", destroy_user_session_path, method: :delete %></p>
|
||||||
|
</div>
|
|
@ -37,11 +37,13 @@ Rails.application.configure do
|
||||||
config.active_storage.service = :local
|
config.active_storage.service = :local
|
||||||
|
|
||||||
# Don't care if the mailer can't send.
|
# 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.raise_delivery_errors = false
|
||||||
|
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
|
||||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
|
|
||||||
|
|
||||||
# Print deprecation notices to the Rails logger.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
|
@ -266,7 +266,7 @@ Devise.setup do |config|
|
||||||
# config.navigational_formats = ['*/*', :html, :turbo_stream]
|
# config.navigational_formats = ['*/*', :html, :turbo_stream]
|
||||||
|
|
||||||
# The default HTTP method used to sign out a resource. Default is :delete.
|
# The default HTTP method used to sign out a resource. Default is :delete.
|
||||||
config.sign_out_via = :delete
|
config.sign_out_via = :get
|
||||||
|
|
||||||
# ==> OmniAuth
|
# ==> OmniAuth
|
||||||
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue