diff options
Diffstat (limited to 'railties/lib/code_statistics.rb')
-rw-r--r-- | railties/lib/code_statistics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/code_statistics.rb b/railties/lib/code_statistics.rb index 203a91f323..75334c4610 100644 --- a/railties/lib/code_statistics.rb +++ b/railties/lib/code_statistics.rb @@ -26,7 +26,7 @@ class CodeStatistics @pairs.inject({}) { |stats, pair| stats[pair.first] = calculate_directory_statistics(pair.last); stats } end - def calculate_directory_statistics(directory, pattern = /.*\.r(b|ake)$/) + def calculate_directory_statistics(directory, pattern = /.*\.rb$/) stats = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 } Dir.foreach(directory) do |file_name| |