forked from thoughtbot/clearance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update clearance and tests to Rails3-style syntax
- Loading branch information
1 parent
c07789c
commit 0fbf771
Showing
6 changed files
with
13 additions
and
13 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
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
class ClearanceMailer < ActionMailer::Base | ||
|
||
def change_password(user) | ||
@user = user | ||
from Clearance.configuration.mailer_sender | ||
recipients user.email | ||
recipients @user.email | ||
subject I18n.t(:change_password, | ||
:scope => [:clearance, :models, :clearance_mailer], | ||
:default => "Change your password") | ||
body :user => user | ||
end | ||
|
||
def confirmation(user) | ||
@user = user | ||
from Clearance.configuration.mailer_sender | ||
recipients user.email | ||
recipients @user.email | ||
subject I18n.t(:confirmation, | ||
:scope => [:clearance, :models, :clearance_mailer], | ||
:default => "Account confirmation") | ||
body :user => user | ||
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
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