Я сделал это, добавив условие к методу create
в confirmations_controller.rb
def create
self.resource = resource_class.send_confirmation_instructions(resource_params)
yield resource if block_given?
if successfully_sent?(resource)
respond_with({}, location: after_resending_confirmation_instructions_path_for(resource_name))
else
if <condition> then
User.find_by_email(resource.email).send_confirmation_instructions
respond_with({}, location: after_resending_confirmation_instructions_path_for(resource_name))
else
respond_with(resource)
end
end
end