Commit 9cdf2d34 by 0x01f7 Committed by Cuong Tran

Fix parsing bug in bin/annotate (#531) (#534)

parent ba95021a
...@@ -745,7 +745,8 @@ module AnnotateModels ...@@ -745,7 +745,8 @@ module AnnotateModels
end end
def split_model_dir(option_value) def split_model_dir(option_value)
option_value.split(',').map(&:strip).reject(&:empty?) option_value = option_value.is_a?(Array) ? option_value : option_value.split(',')
option_value.map(&:strip).reject(&:empty?)
end end
# We're passed a name of things that might be # We're passed a name of things that might be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment