Permalink
Browse files

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

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 44a10a2 commit a0dc6cc70b694349a592b42ec3b58001ce82fec9 @rizwanreza rizwanreza committed with josevalim Jan 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit a0dc6cc

Please sign in to comment.