-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ismail Akbudak
committed
Jun 21, 2016
1 parent
6df8ef1
commit bda5265
Showing
5 changed files
with
35 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class AdminMailer < BaseMailer | ||
|
||
def send_login_information(admin_id, password) | ||
@admin = Admin.find admin_id | ||
@password = password | ||
@subject = t('email.admin.send_login_information.title') | ||
mail(to: @admin.email, subject: @subject) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class BaseMailer < ActionMailer::Base | ||
default from: Settings.email.noreply | ||
layout 'mailer' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class UserMailer < BaseMailer | ||
|
||
def send_login_information(user_id, password) | ||
@user = User.find user_id | ||
@password = password | ||
@subject = t('email.user.send_login_information.title') | ||
mail(to: @user.email, subject: @subject) | ||
end | ||
|
||
end |
File renamed without changes.