From d347e177e4af7fb8e716b78ed03b868ab92a485b Mon Sep 17 00:00:00 2001 From: f Date: Fri, 24 May 2024 13:43:43 -0300 Subject: [PATCH] fix: no memoizar, para poder obtener el valor nuevo siempre --- app/models/metadata_title.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/models/metadata_title.rb b/app/models/metadata_title.rb index ef097473..729a71fd 100644 --- a/app/models/metadata_title.rb +++ b/app/models/metadata_title.rb @@ -12,11 +12,10 @@ class MetadataTitle < MetadataString # # @return [String] def default_value - @default_value ||= - post.attributes.select do |attr| - post[attr].titleize? - end.map do |attr| - post[attr].to_s - end.compact.join(' ').strip.squeeze(' ') + post.attributes.select do |attr| + post[attr].titleize? + end.map do |attr| + post[attr].to_s + end.compact.join(' ').strip.squeeze(' ') end end