mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 02:16:22 +00:00
fix: no memoizar, para poder obtener el valor nuevo siempre
This commit is contained in:
parent
32a2172e5b
commit
d347e177e4
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue