Skip to content

Commit 91cc8d6

Browse files
author
bbrook
committed
Allow ignore_unknown_models to be overridden by an environment variable
1 parent 2614266 commit 91cc8d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/tasks/annotate_models.rake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ task annotate_models: :environment do
4848
options[:hide_limit_column_types] = Annotate.fallback(ENV['hide_limit_column_types'], '')
4949
options[:hide_default_column_types] = Annotate.fallback(ENV['hide_default_column_types'], '')
5050
options[:with_comment] = Annotate.true?(ENV['with_comment'])
51+
options[:ignore_unknown_models] = Annotate.true?(ENV.fetch('ignore_unknown_models', 'false'))
5152

5253
AnnotateModels.do_annotations(options)
5354
end

0 commit comments

Comments
 (0)