title: NameError using Rails, Sidekiq & Clockwork
body: <p>Looking at the 'Example <code>clock.rb</code> file' <a href="https://github.com/tomykaira/clockwork" rel="nofollow">here</a> in the documentation, you can see that my code follows the clockwork conventions (?) exactly. However, I'm getting this error that I can't seem to fix. I've tried pluralizing and singularizing different variables.</p>
  
  <pre><code>`&lt;module:Clockwork&gt;': uninitialized constant Clockwork::Event::Manager (NameError)
      from /Users/MightyMouse/Desktop/DevBootcamp/phase-3/medmento/config/clock.rb:7:in `&lt;top (required)&gt;'
      from /Users/MightyMouse/.rvm/gems/ruby-2.0.0-p598/gems/clockwork-1.1.0/bin/clockwork:12:in `require'
      from /Users/MightyMouse/.rvm/gems/ruby-2.0.0-p598/gems/clockwork-1.1.0/bin/clockwork:12:in `&lt;top (required)&gt;'
      from /Users/MightyMouse/.rvm/gems/ruby-2.0.0-p598/bin/clockwork:23:in `load'
      from /Users/MightyMouse/.rvm/gems/ruby-2.0.0-p598/bin/clockwork:23:in `&lt;main&gt;'
      from /Users/MightyMouse/.rvm/gems/ruby-2.0.0-p598/bin/ruby_executable_hooks:15:in `eval'
      from /Users/MightyMouse/.rvm/gems/ruby-2.0.0-p598/bin/ruby_executable_hooks:15:in `&lt;main&gt;'
  </code></pre>
  
  <p>Here's my <code>clock.rb</code> file:  </p>
  
  <pre><code>require_relative "../config/boot"
  require_relative "../config/environment"
  
  require 'clockwork'
  require 'clockwork/database_events'
  
  module Clockwork
  
  
  
    Clockwork.manager = Event::Manager.new
    sync_database_events model: ClockworkEvent, every: 1.minute do |model_instance|
  
      TwilioWorker.perform_async
    end
  
  
  end
  </code></pre>
  
  <p>Essentially, I'm hoping that Clockwork will (1) loop through each <code>model_instance</code> <em>as seen above</em>, (2) find the <code>frequency_quantity</code> and <code>frequency_period</code> (together, they make up the "time") through the database associations, and (3) invoke the <code>TwilioWorker</code> at the right "time".</p>
  
  <p>I've tried replacing the block with the code below. When I run the <code>clock.rb</code>, I am able to get a phone call from Twilio:</p>
  
  <pre><code>every(1.minutes, "twilio_call.job") { TwilioWorker.perform_async }
  </code></pre>