title: How to pass current_user to Sidekiq's Worker
body: <p>I am trying to pass <code>current_user</code> or <code>User.find(1)</code> to a worker module but getting error in the sidekiq's dashboard (localhost:3000/sidekiq/retries):</p>
  
  <blockquote>
    <p>NoMethodError: undefined method `supports' for "#":String</p>
  </blockquote>
  
  <p>note: my relations are ok ie:</p>
  
  <pre><code>u = User.find(1)
  u.supports
  #=&gt; []
  </code></pre>
  
  <p><strong>supports_controller.rb:</strong></p>
  
  <pre><code>def create
   @user = current_user
   ProjectsWorker.perform_async(@user)
  
   ...
  
  end
  </code></pre>
  
  <p><strong>app/workers/projects_worker.rb:</strong></p>
  
  <pre><code>class ProjectsWorker
    include Sidekiq::Worker
    def perform(user)
      u = user
      @support = u.supports.build(support_params)
    end
  end
  </code></pre>
  
  <p>Re-starting my sidekiq server makes no difference. This is on my development machine.</p>