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 a0514c8..a7bf538 100644 (file)
@@ -742,7 +742,7 @@ private
           @user.errors.set(:email, [])
         end
 
-        user.reset_email!
+        user.restore_email!
       end
     end
   end