Skip to content
This repository
Browse code

Fix RAILS_ROOT deprecation on guides generation. [#3710 status:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit a0dc6cc70b694349a592b42ec3b58001ce82fec9 1 parent 44a10a2
Rizwan Reza authored January 16, 2010 josevalim committed January 17, 2010
2  railties/lib/rails/tasks/documentation.rake
@@ -55,7 +55,7 @@ namespace :doc do
55 55
   desc "Generate Rails guides"
56 56
   task :guides do
57 57
     require File.join(RAILTIES_PATH, "guides/rails_guides")
58  
-    RailsGuides::Generator.new(File.join(RAILS_ROOT, "doc/guides")).generate
  58
+    RailsGuides::Generator.new(Rails.root.join("doc/guides")).generate
59 59
   end
60 60
 
61 61
   namespace :plugins do

0 notes on commit a0dc6cc

Please sign in to comment.
Something went wrong with that request. Please try again.