Skip to content

Commit

Permalink
fix: devise
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticspoon committed Sep 7, 2024
1 parent 9b434aa commit dd07321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# config.secret_key = 'a42b150b56c158d6e064aa257c8434390c921811007f42c5aa16c7455b78e3777087c5a4bcf18bfb0886fdd9296dec34eaa02fc0b47bed58417347eba971ee2d'

# Fixes rspec triggering Rails.application.secrets deprecation warning for Rails 7.1.0 upgrade
config.secret_key = Rails.application.secret_key_base
config.secret_key = Rails.application.secret_key_base if Rails.env.production?

# ==> Controller configuration
# Configure the parent class to the devise controllers.
Expand Down
4 changes: 2 additions & 2 deletions lib/mailers/debug_preview_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class DebugPreviewMailer < ActionMailer::Base
def invalid_user(role)
mail(
from: 'reply@example.com',
from: "reply@example.com",
to: "missing_#{role}@example.com",
subject: 'invalid_user_id',
subject: "invalid_user_id",
body: "User does not exist or is not a #{role}"
)
end
Expand Down

0 comments on commit dd07321

Please sign in to comment.