aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-07 09:03:43 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-07 09:03:43 -0700
commit99c20aaa753f5d333ea34bba9495b06dc0d90413 (patch)
tree6bf368c9b16222a88781a23bdb863d93e6cb9938 /railties/lib/rails
parent63861e0c9c88d9c3f97e5ca9f1a5da014e624f4e (diff)
parenta85caaa185d856f3450ea3cfbc703cd7c727d23d (diff)
downloadrails-99c20aaa753f5d333ea34bba9495b06dc0d90413.tar.gz
rails-99c20aaa753f5d333ea34bba9495b06dc0d90413.tar.bz2
rails-99c20aaa753f5d333ea34bba9495b06dc0d90413.zip
Merge pull request #1767 from jwarwick/rake_notes_dirs
Updated rake:notes to search additional directories
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/source_annotation_extractor.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb
index 6d6e7f8b59..1eed763aa3 100644
--- a/railties/lib/rails/source_annotation_extractor.rb
+++ b/railties/lib/rails/source_annotation_extractor.rb
@@ -28,9 +28,9 @@ class SourceAnnotationExtractor
end
end
- # Prints all annotations with tag +tag+ under the root directories +app+, +lib+,
- # and +test+ (recursively). Only filenames with extension +.builder+, +.rb+,
- # +.rxml+, +.rhtml+, or +.erb+ are taken into account. The +options+
+ # Prints all annotations with tag +tag+ under the root directories +app+, +config+, +lib+,
+ # +script+, and +test+ (recursively). Only filenames with extension
+ # +.builder+, +.rb+, +.rxml+, +.rhtml+, or +.erb+ are taken into account. The +options+
# hash is passed to each annotation's +to_s+.
#
# This class method is the single entry point for the rake tasks.
@@ -49,7 +49,7 @@ class SourceAnnotationExtractor
# with their annotations. Only files with annotations are included, and only
# those with extension +.builder+, +.rb+, +.rxml+, +.rhtml+, and +.erb+
# are taken into account.
- def find(dirs=%w(app lib test))
+ def find(dirs=%w(app config lib script test))
dirs.inject({}) { |h, dir| h.update(find_in(dir)) }
end