Add UserMailer
This commit is contained in:
parent
9f3bd62488
commit
64ef47b82a
|
@ -0,0 +1,23 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class UserMailer < Devise::Mailer
|
||||
# def confirmation_instructions(record, token, opts = {})
|
||||
# super
|
||||
# end
|
||||
|
||||
# def reset_password_instructions(record, token, opts = {})
|
||||
# super
|
||||
# end
|
||||
|
||||
# def unlock_instructions(record, token, opts = {})
|
||||
# super
|
||||
# end
|
||||
|
||||
# def email_changed(record, opts = {})
|
||||
# super
|
||||
# end
|
||||
|
||||
# def password_change(record, opts = {})
|
||||
# super
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class UserPreview < ActionMailer::Preview
|
||||
end
|
|
@ -23,7 +23,7 @@ Devise.setup do |config|
|
|||
config.mailer_sender = Rails.application.config.noreply_email_contact
|
||||
|
||||
# Configure the class responsible to send e-mails.
|
||||
# config.mailer = 'Devise::Mailer'
|
||||
config.mailer = 'UserMailer'
|
||||
|
||||
# Configure the parent class responsible to send e-mails.
|
||||
# config.parent_mailer = 'ActionMailer::Base'
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe UserMailer do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Reference in New Issue