5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 10:06:23 +00:00
panel/app/models/metadata_has_one_nested.rb
2024-04-19 15:00:48 -03:00

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