From 9d902fdd499764e9dbd1e25e625aa3b38b0ae0c4 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 20 Apr 2024 11:24:09 -0300 Subject: [PATCH] fix: es necesario NoMethodError para poder hacer flatten luego closes #16100 --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 953598a9..327df3e2 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -189,7 +189,7 @@ class Post # Limpiar el nombre del atributo, para que todos los ayudantes # reciban el método en limpio unless attribute? name - raise UnknownAttributeError, I18n.t('exceptions.post.no_method', method: name) + raise NoMethodError, I18n.t('exceptions.post.no_method', method: name) end define_singleton_method(name) do