You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: passwords_controller.rb
    path of file: ./repos/devise_token_auth/app/controllers/devise_token_auth
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module DeviseTo
    
    def render_error_not_allowed_redirect_url
      response = {
        status: 'error',
        data:   resource_data
      }
      message = I18n.t('devise_token_auth.passwords.not_allowed_redirect_url', redirect_url: @redirect_url)
      render_error(422, message, response)
    end