diff --git a/app/models/post.rb b/app/models/post.rb index 2f192ac..fe38cca 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -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