Permalink
Browse files

Only include dirs that exists in the stats

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c9c0d74 commit 0f8a3a31a7a673837e414d363aa166dfc66809a9 @dhh dhh committed Sep 13, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 0f8a3a3

Please sign in to comment.