mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:06:23 +00:00
16 lines
280 B
Ruby
16 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MetadataHasOneNested < MetadataHasOne
|
|
def nested
|
|
@nested ||= layout.metadata.dig(name, 'nested')
|
|
end
|
|
|
|
def nested?
|
|
true
|
|
end
|
|
|
|
# No tener conflictos con related
|
|
def related_methods
|
|
@related_methods ||= [].freeze
|
|
end
|
|
end
|