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: user.rb
    path of file: ./repos/Sitepoint-source/Authentication_with_Devise/app/models
    
    the code of the file until where you have to start completion: # == Schema Information
#
# Table name: users
#
#  id                     :integer          not null, primary key
#  name                   :string
    
  def send_devise_notification(notification, *args)
    if Rails.env.production?
      # No worker process in production to handle scheduled tasks
      devise_mailer.send(notification, self, *args).deliver_now
    else
      devise_mailer.send(notification, self, *args).deliver_later
    end