aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks/statistics.rake
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/tasks/statistics.rake')
-rw-r--r--railties/lib/tasks/statistics.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/statistics.rake b/railties/lib/tasks/statistics.rake
index fccb71b311..d97daa0a03 100644
--- a/railties/lib/tasks/statistics.rake
+++ b/railties/lib/tasks/statistics.rake
@@ -6,7 +6,7 @@ STATS_DIRECTORIES = [
%w(Functionals test/functional),
%w(Models app/models),
%w(Units test/unit)
-]
+].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