From 94b01a77de938e24192e4214abc50475ad304ac2 Mon Sep 17 00:00:00 2001 From: Patrick Ma Date: Sat, 23 Jan 2016 13:33:55 +0800 Subject: [PATCH] solve #496 fixes an issue where send_on_create_confirmation_instructions callback is not defined --- app/controllers/devise_token_auth/registrations_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/devise_token_auth/registrations_controller.rb b/app/controllers/devise_token_auth/registrations_controller.rb index 2710120b1..86cf0fd66 100644 --- a/app/controllers/devise_token_auth/registrations_controller.rb +++ b/app/controllers/devise_token_auth/registrations_controller.rb @@ -36,6 +36,7 @@ def create begin # override email confirmation, must be sent manually from ctrl + resource_class.set_callback("create", :after, :send_on_create_confirmation_instructions) resource_class.skip_callback("create", :after, :send_on_create_confirmation_instructions) if @resource.save yield @resource if block_given?