Replace deprecated reset method with restore method
authorTom Hughes <tom@compton.nu>
Sat, 10 Jan 2015 12:37:52 +0000 (12:37 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 11 Jan 2015 12:53:06 +0000 (12:53 +0000)
app/controllers/user_controller.rb

index a0514c8e986d2fdd6ead3dd7ca35b04818b33114..a7bf53824821a4559672b9d1446eccb7dc74bee3 100644 (file)
@@ -742,7 +742,7 @@ private
           @user.errors.set(:email, [])
         end
 
-        user.reset_email!
+        user.restore_email!
       end
     end
   end