title: Using carrierwave_backgrounder along with carrierwave-video, email notifications
body: <p>I have my site configured so that it will automatically render different versions of a video in the background. It's actually working really well. If the video is successful in the three different transcodes it will send a success email. However, if it generates an error, it will send a failure email. The issue that I'm having is that i'm trying to pass self through to the Action Mailer so that I can atleast give the name of the video that is successful or failed. However, it appears that self is null.</p>
  
  <p>model</p>
  
  <pre><code>  def video_success(format, opts)
      VideoMailer.video_success(self).deliver
    end
    def video_rescue(format, opts)
      VideoMailer.video_error(self).deliver
    end
  </code></pre>
  
  <p>uploader</p>
  
  <pre><code>version :mp4 do
      process :encode_video =&gt; [:mp4, callbacks: {rescue: :video_rescue}  ]
      def full_filename(for_file)
        "#{File.basename(for_file, File.extname(for_file))}.mp4"
      end
  end
  
  
  version :webm do
      process :encode_video =&gt; [:webm, callbacks: { after_transcode: :video_success, rescue: :video_rescue }]
      def full_filename(for_file)
        "#{File.basename(for_file, File.extname(for_file))}.webm"
      end
  end
  </code></pre>
  
  <p>Any thoughts on how this can be accomplished? Also, it would be best that if there was an error, to return the error message that is generated. </p>
  
  <p>Secondly, each User model has an email address. The user who uploads the video should receive the email address. However, I'm having issues using current_user within the model. I'm thinking that it also has something to do with the backgrounder since that information is not passed over to the background process.</p>