Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Rails.root in statistics rake task

  • Loading branch information...
commit 29ba9c030704fb76dc2debbfecbb10fd70233d18 1 parent 7593e8b
@josh josh authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 railties/lib/rails/tasks/statistics.rake
5 railties/lib/rails/tasks/statistics.rake
@@ -1,14 +1,13 @@
%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| }
+].collect { |name, dir| [ name, "#{Rails.root}/#{dir}" ] }.select { |name, dir| }
desc "Report code statistics (KLOCs, etc) from the application"
task :stats do

1 comment on commit 29ba9c0


Rails.root + dir even. cleaner imo.

Please sign in to comment.
Something went wrong with that request. Please try again.