title: Sidekiq and after_create callbacks
body: <p>How can I run methods in background with sidekiq? Currently I have something like this:</p>
  
  <p>order.rb</p>
  
  <pre><code>class Order &lt; ActiveRecord::Base
  include Badges
  belongs_to :user
  
  end
  </code></pre>
  
  <p>concerns/badges.rb</p>
  
  <pre><code>module Badges
   extend ActiveSupport::Concern
  
   included do
     after_update :badges
   end
  
   def badges
     streak = user.selling_streak.value
     case streak
       when 3
         user.add_badge(5) unless user.badges.any? {|b| b.id == 5}
       when 5
         user.add_badge(6) unless user.badges.any? {|b| b.id == 6}
     end
   end
  end
  </code></pre>
  
  <p>I have put the badges method into concerns, and it will run on an after_update callback in order model. How can I put the whole method in background process with sidekiq?</p>