From 7b0413e59ed0d4391a5ff54fb3cd08f0d005c26d Mon Sep 17 00:00:00 2001 From: Stéphan Gorget Date: Thu, 4 Jun 2009 11:17:55 +0200 Subject: Fixes Bug #2324 - Puppetd fails to start without rails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphan Gorget --- lib/puppet/feature/rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/feature/rails.rb b/lib/puppet/feature/rails.rb index b4c09a2ee..533f9ce7c 100644 --- a/lib/puppet/feature/rails.rb +++ b/lib/puppet/feature/rails.rb @@ -26,7 +26,7 @@ Puppet.features.add(:rails) do end if ! (defined?(::ActiveRecord) and defined?(::ActiveRecord::VERSION) and defined?(::ActiveRecord::VERSION::MAJOR) and defined?(::ActiveRecord::VERSION::MINOR)) - true + false elsif ! (::ActiveRecord::VERSION::MAJOR == 2 and ::ActiveRecord::VERSION::MINOR >= 1) Puppet.info "ActiveRecord 2.1 or later required for StoreConfigs" false -- cgit