<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,9 +19,8 @@ BDRB_CONFIG = BackgrounDRb::Config.read_config(&quot;#{RAILS_HOME}/config/backgroundr
 
 if !(::Packet::WorkerRunner::WORKER_OPTIONS[:worker_env] == false)
   require RAILS_HOME + &quot;/config/environment&quot;
-  if(Object.const_defined?(:Rails) &amp;&amp; Rails.version &lt; &quot;2.2.2&quot;)
-    ActiveRecord::Base.allow_concurrency = true
-  elsif(Object.const_defined?(:RAILS_GEM_VERSION) &amp;&amp; RAILS_GEM_VERSION &lt; &quot;2.2.2&quot;)
+  if (Object.const_defined?(:Rails) &amp;&amp; (!Rails.respond_to?(:version) || Rails.version &lt; &quot;2.2.2&quot;)) ||
+     (Object.const_defined?(:RAILS_GEM_VERSION) &amp;&amp; RAILS_GEM_VERSION &lt; &quot;2.2.2&quot;)
     ActiveRecord::Base.allow_concurrency = true
   end
 end</diff>
      <filename>script/load_worker_env.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>707289a1e9b27009facf4329837a749b6a95b808</id>
    </parent>
  </parents>
  <author>
    <name>Emilio Tagua</name>
    <email>miloops@gmail.com</email>
  </author>
  <url>http://github.com/gnufied/backgroundrb/commit/663930d6160bf5164083dcfcd137b42ac85cabf5</url>
  <id>663930d6160bf5164083dcfcd137b42ac85cabf5</id>
  <committed-date>2009-07-03T10:37:20-07:00</committed-date>
  <authored-date>2009-07-03T10:29:18-07:00</authored-date>
  <message>Fix conditional from previous commit to work on Rails versions before version method was defined.

Signed-off-by: Hemant Kumar &lt;gethemant@gmail.com&gt;</message>
  <tree>90e60e35f0977296c2d388066d2ab4e1a2534188</tree>
  <committer>
    <name>Hemant Kumar</name>
    <email>gethemant@gmail.com</email>
  </committer>
</commit>
