Skip to content

Commit 866a23a

Browse files
ryanfox1985ctran
authored andcommitted
Forgotten option hide_default_column_types (#431)
1 parent d108ba8 commit 866a23a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/tasks/annotate_models.rake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ task annotate_models: :environment do
1010
require "#{annotate_lib}/annotate/annotate_models"
1111
require "#{annotate_lib}/annotate/active_record_patch"
1212

13-
options={is_rake: true}
13+
options = {is_rake: true}
1414
ENV['position'] = options[:position] = Annotate.fallback(ENV['position'], 'before')
1515
options[:position_in_class] = Annotate.fallback(ENV['position_in_class'], ENV['position'])
1616
options[:position_in_fixture] = Annotate.fallback(ENV['position_in_fixture'], ENV['position'])
@@ -45,6 +45,7 @@ task annotate_models: :environment do
4545
options[:ignore_columns] = ENV.fetch('ignore_columns', nil)
4646
options[:ignore_routes] = ENV.fetch('ignore_routes', nil)
4747
options[:hide_limit_column_types] = Annotate.fallback(ENV['hide_limit_column_types'], '')
48+
options[:hide_default_column_types] = Annotate.fallback(ENV['hide_default_column_types'], '')
4849

4950
AnnotateModels.do_annotations(options)
5051
end
@@ -54,7 +55,7 @@ task remove_annotation: :environment do
5455
require "#{annotate_lib}/annotate/annotate_models"
5556
require "#{annotate_lib}/annotate/active_record_patch"
5657

57-
options={is_rake: true}
58+
options = {is_rake: true}
5859
options[:model_dir] = ENV['model_dir']
5960
options[:root_dir] = ENV['root_dir']
6061
options[:require] = ENV['require'] ? ENV['require'].split(',') : []

0 commit comments

Comments
 (0)