mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Split up mailer classes into their own files.
This commit is contained in:
parent
716d128e27
commit
a6f3f8cb4a
3 changed files with 7 additions and 9 deletions
3
test/rails_app/app/mailers/users/from_proc_mailer.rb
Normal file
3
test/rails_app/app/mailers/users/from_proc_mailer.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Users::FromProcMailer < Devise::Mailer
|
||||
default from: proc { 'custom@example.com' }
|
||||
end
|
|
@ -1,12 +1,3 @@
|
|||
class Users::Mailer < Devise::Mailer
|
||||
default from: 'custom@example.com'
|
||||
end
|
||||
|
||||
class Users::ReplyToMailer < Devise::Mailer
|
||||
default from: 'custom@example.com'
|
||||
default reply_to: 'custom_reply_to@example.com'
|
||||
end
|
||||
|
||||
class Users::FromProcMailer < Devise::Mailer
|
||||
default from: proc { 'custom@example.com' }
|
||||
end
|
||||
|
|
4
test/rails_app/app/mailers/users/reply_to_mailer.rb
Normal file
4
test/rails_app/app/mailers/users/reply_to_mailer.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
class Users::ReplyToMailer < Devise::Mailer
|
||||
default from: 'custom@example.com'
|
||||
default reply_to: 'custom_reply_to@example.com'
|
||||
end
|
Loading…
Add table
Reference in a new issue