aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-16 19:40:59 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-16 19:40:59 -0500
commit29ba9c030704fb76dc2debbfecbb10fd70233d18 (patch)
treebb12068a8f677469b727e211183455531d1a70a9 /railties
parent7593e8b8b56b030a321b0ab071155a44512685c1 (diff)
downloadrails-29ba9c030704fb76dc2debbfecbb10fd70233d18.tar.gz
rails-29ba9c030704fb76dc2debbfecbb10fd70233d18.tar.bz2
rails-29ba9c030704fb76dc2debbfecbb10fd70233d18.zip
Use Rails.root in statistics rake task
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/tasks/statistics.rake5
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/lib/rails/tasks/statistics.rake b/railties/lib/rails/tasks/statistics.rake
index 2dcc7bdf9d..40f8c1034a 100644
--- a/railties/lib/rails/tasks/statistics.rake
+++ b/railties/lib/rails/tasks/statistics.rake
@@ -1,14 +1,13 @@
STATS_DIRECTORIES = [
%w(Controllers app/controllers),
- %w(Helpers app/helpers),
+ %w(Helpers app/helpers),
%w(Models app/models),
%w(Libraries lib/),
%w(APIs app/apis),
%w(Integration\ tests test/integration),
%w(Functional\ tests test/functional),
%w(Unit\ tests test/unit)
-
-].collect { |name, dir| [ name, "#{RAILS_ROOT}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
+].collect { |name, dir| [ name, "#{Rails.root}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
desc "Report code statistics (KLOCs, etc) from the application"
task :stats do