diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-13 18:43:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-13 18:43:23 +0000 |
commit | 0f8a3a31a7a673837e414d363aa166dfc66809a9 (patch) | |
tree | 8cb40932d3b681ffb97df47d53fef57651b44b2a /railties | |
parent | c9c0d74b5db845963c5c1748668d7049313c103b (diff) | |
download | rails-0f8a3a31a7a673837e414d363aa166dfc66809a9.tar.gz rails-0f8a3a31a7a673837e414d363aa166dfc66809a9.tar.bz2 rails-0f8a3a31a7a673837e414d363aa166dfc66809a9.zip |
Only include dirs that exists in the stats
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/statistics.rake | 2 |
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 |