From f99b06a27a0815ae8f26f5435bce43624c9aa37b Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Mon, 25 Apr 2011 17:38:33 +0800 Subject: [PATCH] rails root deprecated --- lib/tasks/cucumber.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/cucumber.rake b/lib/tasks/cucumber.rake index 8744327..26cd29d 100644 --- a/lib/tasks/cucumber.rake +++ b/lib/tasks/cucumber.rake @@ -1,4 +1,4 @@ -$LOAD_PATH.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib') if File.directory?(RAILS_ROOT + '/vendor/plugins/cucumber/lib') +$LOAD_PATH.unshift(Rails.root.to_s + '/vendor/plugins/cucumber/lib') if File.directory?(Rails.root.to_s + '/vendor/plugins/cucumber/lib') begin require 'cucumber/rake/task'