rails root deprecated

This commit is contained in:
Espen Antonsen 2011-04-25 17:38:33 +08:00
parent 7a15fa72ae
commit f99b06a27a

View file

@ -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'