no fallar si el valor esta vacio

This commit is contained in:
f 2018-06-22 13:20:51 -03:00
parent 8c6af96d2f
commit ea36a3cd9f
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -217,7 +217,7 @@ class Post
sv[subattr]
end
else
tv[subattr]
tv.try :dig, subattr
end
end
else