title: Undefined method with rails runner
body: <p>I'm using the gem <a href="https://github.com/javan/whenever" rel="noreferrer">whenever</a> and I can't get my runner instruction working.</p>
  
  <p>I'm getting this error:</p>
  
  <pre><code>/Users/bl0b/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands/runner.rb:53:in `eval': undefined method `run' for #&lt;Class:0x007f97d88744a8&gt; (NoMethodError)
      from (eval):1:in `&lt;top (required)&gt;'
      from /Users/bl0b/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands/runner.rb:53:in `eval'
      from /Users/bl0b/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands/runner.rb:53:in `&lt;top (required)&gt;'
      from /Users/bl0b/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands.rb:64:in `require'
      from /Users/bl0b/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands.rb:64:in `&lt;top (required)&gt;'
      from script/rails:6:in `require'
      from script/rails:6:in `&lt;main&gt;'
  </code></pre>
  
  <p>I have the following code in my <code>shedule.rb</code> :</p>
  
  <pre><code>set :environment, 'development' 
  
       every 1.minutes do
         runner "Crawler.run", :output =&gt; '/Users/bl0b/Projects/crawler/cron.log'  
       end
  </code></pre>
  
  <p>and in my <code>app/models/crawler.rb</code> I have the following code:</p>
  
  <pre><code>class Crawler &lt; ActiveRecord::Base
  
    def run
      puts "toto"
    end
  
  end
  </code></pre>