no fallar miserablemente si value esta vacio
This commit is contained in:
parent
6941f21a54
commit
60d504247e
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ class Post
|
|||
_value = [(_value.first + value).uniq]
|
||||
elsif _value.count == 2
|
||||
_value = _value.each_with_index.map do |v,i|
|
||||
v + value[i]
|
||||
v + value.fetch(i, [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue