Skip to content

Commit 1d6e269

Browse files
author
0x01f7
committed
Fix ctran#531: NoMethodError: undefined method strip for ["app/models"]:Array
1 parent ba95021 commit 1d6e269

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/annotate/annotate_models.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ def parse_options(options = {})
745745
end
746746

747747
def split_model_dir(option_value)
748-
option_value.split(',').map(&:strip).reject(&:empty?)
748+
option_value = option_value.is_a?(Array) ? option_value : option_value.split(',')
749+
option_value.map(&:strip).reject(&:empty?)
749750
end
750751

751752
# We're passed a name of things that might be

0 commit comments

Comments
 (0)