Skip to content
Browse files

Merge pull request #1767 from jwarwick/rake_notes_dirs

Updated rake:notes to search additional directories
  • Loading branch information...
2 parents 63861e0 + a85caaa commit 99c20aaa753f5d333ea34bba9495b06dc0d90413 @spastorino spastorino committed Jul 7, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/lib/rails/source_annotation_extractor.rb
View
8 railties/lib/rails/source_annotation_extractor.rb
@@ -28,9 +28,9 @@ def to_s(options={})
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 @@ def initialize(tag)
# 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

0 comments on commit 99c20aa

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