Skip to content

Commit

Permalink
Merge pull request #1767 from jwarwick/rake_notes_dirs
Browse files Browse the repository at this point in the history
Updated rake:notes to search additional directories
  • Loading branch information
spastorino committed Jul 7, 2011
2 parents 63861e0 + a85caaa commit 99c20aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/lib/rails/source_annotation_extractor.rb
Expand Up @@ -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.
Expand All @@ -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

Expand Down

0 comments on commit 99c20aa

Please sign in to comment.