From e6772ae54987195203e6cd2fea7ccb65b35f2c15 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 11 Sep 2018 12:51:44 -0300 Subject: [PATCH] bug al guardar el idioma --- app/models/post.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 2f192ac8..fe38ccae 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