From 12e7633c15b19d49c6cd20cffe8c64fd612888da Mon Sep 17 00:00:00 2001 From: Yoshiyuki Hirano Date: Tue, 1 May 2018 11:22:25 +0900 Subject: [PATCH] Fix with_comment format in annotate_models_rake * :with_comment option is flag * It should use `true?` instead of `fallback`. --- lib/tasks/annotate_models.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/annotate_models.rake b/lib/tasks/annotate_models.rake index 495501233..8410a27fc 100644 --- a/lib/tasks/annotate_models.rake +++ b/lib/tasks/annotate_models.rake @@ -47,7 +47,7 @@ task annotate_models: :environment do options[:ignore_routes] = ENV.fetch('ignore_routes', nil) 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.fallback(ENV['with_comment'], '') + options[:with_comment] = Annotate.true?(ENV['with_comment']) AnnotateModels.do_annotations(options) end