-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a58c73f
commit 13fe838
Showing
4 changed files
with
53 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
lib/generators/active_record/annotate/install/templates/initializer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
require 'active_record/annotate' | ||
|
||
ActiveRecord::Annotate.configure do |config| | ||
# set this to true to wrap annotations in triple backticks (```) | ||
# so YARD documentation can process the annotation as a code block | ||
# config.yard = false | ||
end if ActiveRecord.const_defined?(:Annotate) | ||
if defined?(ActiveRecord::Annotate) | ||
ActiveRecord::Annotate.configure do |config| | ||
# # set this to true to wrap annotations in triple backticks (```) | ||
# # so YARD documentation can process the annotation as a code block | ||
# config.yard = false | ||
# | ||
# # Define any models to be skipped by Annotate | ||
# config.ignored_models = [SomeIgnoredModel, AnotherIgnoredModel] | ||
end | ||
end |