1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Rizwan Reza 2010-01-16 21:48:24 +03:30 committed by José Valim
parent 44a10a2440
commit a0dc6cc70b

View file

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