@@ -10,7 +10,7 @@ task annotate_models: :environment do
10
10
require "#{ annotate_lib } /annotate/annotate_models"
11
11
require "#{ annotate_lib } /annotate/active_record_patch"
12
12
13
- options = { is_rake : true }
13
+ options = { is_rake : true }
14
14
ENV [ 'position' ] = options [ :position ] = Annotate . fallback ( ENV [ 'position' ] , 'before' )
15
15
options [ :position_in_class ] = Annotate . fallback ( ENV [ 'position_in_class' ] , ENV [ 'position' ] )
16
16
options [ :position_in_fixture ] = Annotate . fallback ( ENV [ 'position_in_fixture' ] , ENV [ 'position' ] )
@@ -45,6 +45,7 @@ task annotate_models: :environment do
45
45
options [ :ignore_columns ] = ENV . fetch ( 'ignore_columns' , nil )
46
46
options [ :ignore_routes ] = ENV . fetch ( 'ignore_routes' , nil )
47
47
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' ] , '' )
48
49
49
50
AnnotateModels . do_annotations ( options )
50
51
end
@@ -54,7 +55,7 @@ task remove_annotation: :environment do
54
55
require "#{ annotate_lib } /annotate/annotate_models"
55
56
require "#{ annotate_lib } /annotate/active_record_patch"
56
57
57
- options = { is_rake : true }
58
+ options = { is_rake : true }
58
59
options [ :model_dir ] = ENV [ 'model_dir' ]
59
60
options [ :root_dir ] = ENV [ 'root_dir' ]
60
61
options [ :require ] = ENV [ 'require' ] ? ENV [ 'require' ] . split ( ',' ) : [ ]
0 commit comments