1
0
Fork 0

Add UserMailer

This commit is contained in:
Alex Kotov 2018-12-06 23:16:20 +05:00
parent 9f3bd62488
commit 64ef47b82a
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
4 changed files with 35 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
# frozen_string_literal: true
class UserPreview < ActionMailer::Preview
end

View File

@ -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'

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe UserMailer do
pending "add some examples to (or delete) #{__FILE__}"
end