mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use Rails.root in statistics rake task
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user