<div class="moz-text-plain" style="font-family: -moz-fixed; font-size: 12px;" lang="x-western"><pre>I have the next including files structure :<br><br>    - controller fileaA.rb including line (#8): require &quot;fileB&quot;...
<br>    - /lib/fileB.rb with main header: load &#39;backgroundrb/worker.rb&#39;<br>                                                 load &#39;backgroundrb/<br>worker_rails.rb&#39;<br>                                                  class FileB &lt;
<br>BackgrounDRb::Worker::RailsBase<br>                                                  ........................................................................<br>                             and on line #72:  FileB .register
<br>when I restart my lighttpd web server , at the first loading of the<br>controller it rise the next error:<br><br>You have a nil object when you didn&#39;t expect it!<br>You might have expected an instance of Array.<br>
The error occured while evaluating nil.include?<br><br>RAILS_ROOT: ......<br>Application Trace | Framework Trace | Full Trace<br><br>#{RAILS_ROOT}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>vendor/plugins/backgroundrb/server/lib/backgroundrb
<span class="moz-txt-tag">/</span></i><br>middleman.rb:158:in `register_worker_class&#39;<br>#{RAILS_ROOT}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>vendor/plugins/backgroundrb/server/lib/backgroundrb<span class="moz-txt-tag">
/</span></i><br>worker.rb:17:in `register&#39;<br>#{RAILS_ROOT}/lib/fileB.rb:72<br>#{RAILS_ROOT}/app/controllers/fileA.rb:8<br><br>After reloading the page, this error did not rise again , I need help<br>with any idea concerning this behavior of backgroundrb plugin (what is
<br>wrong in my including code or what could generate this error?)<br><br>Thank&#39;s<br><br></pre></div>