Skip to content

Commit

Permalink
Allow ignore_unknown_models to be overridden by an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
benrbrook committed Jan 7, 2019
1 parent 2614266 commit 5511e8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/annotate_models.rake
Expand Up @@ -48,6 +48,7 @@ task annotate_models: :environment do
options[:hide_limit_column_types] = Annotate.fallback(ENV['hide_limit_column_types'], '')
options[:hide_default_column_types] = Annotate.fallback(ENV['hide_default_column_types'], '')
options[:with_comment] = Annotate.true?(ENV['with_comment'])
options[:ignore_unknown_models] = Annotate.true?(ENV.fetch('ignore_unknown_models', 'false'))

AnnotateModels.do_annotations(options)
end
Expand Down

0 comments on commit 5511e8e

Please sign in to comment.