Skip to content

Commit 9c5ac5f

Browse files
committed
Add missing option default in rake task
1 parent 45f8b1a commit 9c5ac5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/tasks/annotate_models.rake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ task annotate_models: :environment do
1212

1313
options = {is_rake: true}
1414
ENV['position'] = options[:position] = Annotate.fallback(ENV['position'], 'before')
15+
options[:additional_file_patterns] = ENV['additional_file_patterns'] ? ENV['additional_file_patterns'].split(',') : []
1516
options[:position_in_class] = Annotate.fallback(ENV['position_in_class'], ENV['position'])
1617
options[:position_in_fixture] = Annotate.fallback(ENV['position_in_fixture'], ENV['position'])
1718
options[:position_in_factory] = Annotate.fallback(ENV['position_in_factory'], ENV['position'])

0 commit comments

Comments
 (0)