5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 21:56:22 +00:00

fix: no memoizar, para poder obtener el valor nuevo siempre

This commit is contained in:
f 2024-05-24 13:43:43 -03:00
parent 32a2172e5b
commit d347e177e4
No known key found for this signature in database

View file

@ -12,11 +12,10 @@ class MetadataTitle < MetadataString
# #
# @return [String] # @return [String]
def default_value def default_value
@default_value ||= post.attributes.select do |attr|
post.attributes.select do |attr| post[attr].titleize?
post[attr].titleize? end.map do |attr|
end.map do |attr| post[attr].to_s
post[attr].to_s end.compact.join(' ').strip.squeeze(' ')
end.compact.join(' ').strip.squeeze(' ')
end end
end end