Skip to content

Commit 4444e8e

Browse files
committed
Add back old constant alias for Rodauth::Rails::Mailer
This ensures that any email deliveries enqueued on earlier versions of rodauth-rails would still get processed after deploying code with new version.
1 parent fb3e67d commit 4444e8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rodauth/rails/feature/email.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def create_email_to(to, subject, body)
2424
def send_email(email)
2525
email.deliver_now
2626
end
27+
28+
# for backwards compatibility
29+
Mailer = Rodauth::Rails::Mailer
30+
deprecate_constant :Mailer
2731
end
2832
end
2933
end

0 commit comments

Comments
 (0)