diff options
author | Prem Sichanugrist <s@sikac.hu> | 2018-03-22 12:46:18 +0000 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2018-03-22 17:06:14 +0000 |
commit | 1638d3c075f6e2139ff7ae63c8a666068e1ae5e5 (patch) | |
tree | ee9370e22e88542830fdb1aab3992b0439eaeb68 /railties | |
parent | 67cc450086ce448b492bdc9208c00234a1cdf949 (diff) | |
download | rails-1638d3c075f6e2139ff7ae63c8a666068e1ae5e5.tar.gz rails-1638d3c075f6e2139ff7ae63c8a666068e1ae5e5.tar.bz2 rails-1638d3c075f6e2139ff7ae63c8a666068e1ae5e5.zip |
Make Annotation into a proper class
This cleans up the documentation for SourceAnnotationExtractor because
RDoc does not seems to know how to parse `Struct.new() do` block.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/source_annotation_extractor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb index 74c2923761..9fa2de2e54 100644 --- a/railties/lib/rails/source_annotation_extractor.rb +++ b/railties/lib/rails/source_annotation_extractor.rb @@ -16,7 +16,7 @@ module Rails # start with the tag optionally followed by a colon. Everything up to the end # of the line (or closing ERB comment tag) is considered to be their text. class SourceAnnotationExtractor - Annotation = Struct.new(:line, :tag, :text) do + class Annotation < Struct.new(:line, :tag, :text) def self.directories @@directories ||= %w(app config db lib test) + (ENV["SOURCE_ANNOTATION_DIRECTORIES"] || "").split(",") end |