Skip to content

Commit

Permalink
Fixed: Deprecated ActionMailer API
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannes committed Apr 26, 2011
1 parent 1d1d580 commit d562832
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/password_resets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def new
def create
@user = User.find_by_email(params[:email])
if @user
@user.deliver_password_reset_instructions!
@user.password_reset_instructions!.deliver
flash[:notice] = "Vi har sendt instruksjoner for å endre passord til den angitte emailadressen. Følg instruksjonene for å endre passordet."
redirect_to root_url
else
Expand Down
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def user_status
registration ? registration.description : "Ukjent"
end

def deliver_password_reset_instructions!
def password_reset_instructions
reset_perishable_token!
SmidigMailer.password_reset_instructions(self).deliver
SmidigMailer.password_reset_instructions(self)
end


Expand Down

0 comments on commit d562832

Please sign in to comment.