mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 15:46:21 +00:00
fix: new_predefined_array con valores legibles por humanes
This commit is contained in:
parent
91e9eab975
commit
bd3df6c186
1 changed files with 9 additions and 0 deletions
|
@ -7,4 +7,13 @@ class MetadataPredefinedArray < MetadataArray
|
|||
[v[I18n.locale.to_s], k]
|
||||
end&.to_h
|
||||
end
|
||||
|
||||
# Devolver los valores legibles por humanes
|
||||
#
|
||||
# @todo Debería devolver los valores en el idioma del post, no de le
|
||||
# usuarie
|
||||
# @return [String]
|
||||
def to_s
|
||||
values.invert.select { |x, k| value.include?(x) }.values.join(', ')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue