title: uninitialized constant Sidekiq::Worker (NameError)
body: <p>Today I discovered the <a href="https://github.com/andersondias/sidekiq_mailer" rel="nofollow">sidekiq-mailer</a>, a wonderful gem that integrates with Sidekiq and really can help my project. But I'm having some issues in installation/configuration, someone can help me? I already saw all related questions and none fix my issue.<br/><br/>
  <hr></p>
  
  <h2>Gem File</h2>
  
  <p>Currently I'm using the lastest version of Sidekiq and the lastest version of SidekiqMailer. Following you can check my gemfile:</p>
  
  <pre><code>gem 'sidekiq'
  gem "sidekiq-cron" 
  gem 'sidekiq-failures' 
  gem 'sidekiq_mailer', git: 'https://github.com/andersondias/sidekiq_mailer.git'
  </code></pre>
  
  <p>I'm using all this gems, but in different purposes / features. <br/><br/></p>
  
  <hr>
  
  <h2>Files</h2>
  
  <p>I have two workers at the moment: one that uses "sidekiq" + "sidekiq-cron" and another (I think you have a good guess) that uses "sidekiq" + "sidekiq_mailer". </p>
  
  <p>I have one <strong>PersonMailer</strong>, but this don't use "sidekiq_mailer" yet:</p>
  
  <pre><code>class PersonMailer &lt; ActionMailer::Base
  
    default from: "no-reply@myAwesomeProject.com"
  
    # Templates in "views/mailers/mailer_name/method_name.html.erb"
    default template_path: "mailers/#{self.name.underscore}"
  
    def send_email_new_user(user)
      @user = user
      mail(to: @user.email, subject: "You = &lt;3")
    end
  
  end
  </code></pre>
  
  <p>And I call my mailer this way (inside PersonController):</p>
  
  <pre><code>PersonMailer.send_email_new_user(user).deliver
  </code></pre>
  
  <p><hr></p>
  
  <h2>The Error</h2>
  
  <p>Now let's talk about my error. After I run <code>bundle install</code> in Terminal, I can't start my localhost server (<code>rails s</code>). Always I try it I receive the following error:</p>
  
  <pre><code>/home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/bundler/gems/sidekiq_mailer-4a5881b10c2a/lib/sidekiq_mailer/worker.rb:2:in `&lt;class:Worker&gt;': uninitialized constant Sidekiq::Worker (NameError)
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/bundler/gems/sidekiq_mailer-4a5881b10c2a/lib/sidekiq_mailer/worker.rb:1:in `&lt;top (required)&gt;'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/bundler/gems/sidekiq_mailer-4a5881b10c2a/lib/sidekiq_mailer.rb:2:in `&lt;top (required)&gt;'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler/runtime.rb:76:in `require'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler/runtime.rb:72:in `each'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler/runtime.rb:72:in `block in require'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler/runtime.rb:61:in `each'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler/runtime.rb:61:in `require'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/bundler-1.6.5/lib/bundler.rb:132:in `require'
      from /home/paladini/Documents/Programacao/myAwesomeProject/config/application.rb:6:in `&lt;top (required)&gt;'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in &lt;top (required)&gt;'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
      from /home/paladini/.rvm/gems/ruby-1.9.3-p547@myAwesomeProject/gems/railties-3.2.3/lib/rails/commands.rb:50:in `&lt;top (required)&gt;'
      from script/rails:6:in `require'
      from script/rails:6:in `&lt;main&gt;'
  </code></pre>
  
  <p><br/></p>
  
  <h1>How can I solve this problem fast?</h1>
  
  <p><br/>
  <strong>P.S:</strong> I also posted this question as a GitHub Issue, <a href="https://github.com/andersondias/sidekiq_mailer/issues/17" rel="nofollow">here</a>.</p>