mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 18:56:21 +00:00
10 lines
250 B
Ruby
10 lines
250 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Una lista de valores predefinidos
|
|
class MetadataPredefinedArray < MetadataArray
|
|
def values
|
|
@values ||= layout.dig(:metadata, name, 'values')&.map do |k, v|
|
|
[v[I18n.locale.to_s], k]
|
|
end&.to_h
|
|
end
|
|
end
|