bug al guardar el idioma

This commit is contained in:
f 2018-09-11 12:51:44 -03:00
parent 8833219379
commit e6772ae549
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -230,7 +230,11 @@ class Post
end
end
{ k => v }
if v.is_a? ActionController::Parameters
{ k => v.to_hash }
else
{ k => v }
end
end.reduce(Hash.new, :merge).stringify_keys
# el cuerpo se maneja por separado