5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 15:45:46 +00:00

no fallar miserablemente si value esta vacio

This commit is contained in:
f 2018-07-02 13:18:21 -03:00
parent 6941f21a54
commit 60d504247e
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -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