Skip to content

Commit e02d122

Browse files
yhirano55ctran
authored andcommitted
Fix with_comment format in annotate_models_rake (#560)
* :with_comment option is flag * It should use `true?` instead of `fallback`.
1 parent d57ef25 commit e02d122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/annotate_models.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ task annotate_models: :environment do
4747
options[:ignore_routes] = ENV.fetch('ignore_routes', nil)
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'], '')
50-
options[:with_comment] = Annotate.fallback(ENV['with_comment'], '')
50+
options[:with_comment] = Annotate.true?(ENV['with_comment'])
5151

5252
AnnotateModels.do_annotations(options)
5353
end

0 commit comments

Comments
 (0)