aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRizwan Reza <rizwanreza@gmail.com>2010-01-16 21:48:24 +0330
committerJosé Valim <jose.valim@gmail.com>2010-01-17 16:28:31 +0100
commita0dc6cc70b694349a592b42ec3b58001ce82fec9 (patch)
tree0bc92ef9a16ba466b140e7f26e979e5a918a0e3c
parent44a10a2440640edae5a39a0be562093503dc7bb3 (diff)
downloadrails-a0dc6cc70b694349a592b42ec3b58001ce82fec9.tar.gz
rails-a0dc6cc70b694349a592b42ec3b58001ce82fec9.tar.bz2
rails-a0dc6cc70b694349a592b42ec3b58001ce82fec9.zip
Fix RAILS_ROOT deprecation on guides generation. [#3710 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r--railties/lib/rails/tasks/documentation.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/documentation.rake b/railties/lib/rails/tasks/documentation.rake
index db1939c45f..65d0d476ba 100644
--- a/railties/lib/rails/tasks/documentation.rake
+++ b/railties/lib/rails/tasks/documentation.rake
@@ -55,7 +55,7 @@ namespace :doc do
desc "Generate Rails guides"
task :guides do
require File.join(RAILTIES_PATH, "guides/rails_guides")
- RailsGuides::Generator.new(File.join(RAILS_ROOT, "doc/guides")).generate
+ RailsGuides::Generator.new(Rails.root.join("doc/guides")).generate
end
namespace :plugins do