<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,24 +28,11 @@ Puppet.features.add(:rails) do
         end
     end
 
-    # If we couldn't find it the normal way, try using a Gem.
-    unless defined? ActiveRecord
-        begin
-            require 'rubygems'
-            require 'rails'
-        rescue LoadError
-            # Nothing
-        end
+    unless defined?(::ActiveRecord) and ::ActiveRecord::VERSION::MAJOR == 2 and ::ActiveRecord::VERSION::MINOR == 3
+        Puppet.err &quot;ActiveRecord 2.3 required for StoreConfigs&quot;
+        raise &quot;ActiveRecord 2.3 required for StoreConfigs&quot;
     end
 
-    # We check a fairly specific class, so that we can be sure that we've
-    # loaded a new enough version of AR that will support the features we
-    # actually use.
-    if defined? ActiveRecord::Associations::BelongsToPolymorphicAssociation
-        require 'puppet/rails'
-        true
-    else
-        false
-    end
+    true
 end
 </diff>
      <filename>lib/puppet/feature/rails.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a0c1edec69c7eea70fe1ca9f4e0e1dc6fc3d688b</id>
    </parent>
  </parents>
  <author>
    <name>Luke Kanies</name>
    <email>luke@madstop.com</email>
  </author>
  <url>http://github.com/lak/puppet/commit/8ed7ae3a23dd84dfc7ef835c2bb36f7ee4cfe9e5</url>
  <id>8ed7ae3a23dd84dfc7ef835c2bb36f7ee4cfe9e5</id>
  <committed-date>2009-04-24T08:19:51-07:00</committed-date>
  <authored-date>2009-04-23T16:56:30-07:00</authored-date>
  <message>Fixing the Rails feature test to require 2.3.x

Signed-off-by: Luke Kanies &lt;luke@madstop.com&gt;</message>
  <tree>26099de6846102cf7e35d10e0e388e7302008921</tree>
  <committer>
    <name>James Turnbull</name>
    <email>james@lovedthanlost.net</email>
  </committer>
</commit>
