5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 23:06:22 +00:00
panel/app/models/metadata_has_one_nested.rb

17 lines
280 B
Ruby
Raw Normal View History

2024-04-17 21:09:55 +00:00
# frozen_string_literal: true
class MetadataHasOneNested < MetadataHasOne
def nested
@nested ||= layout.metadata.dig(name, 'nested')
end
def nested?
true
end
2024-04-19 18:00:48 +00:00
# No tener conflictos con related
def related_methods
@related_methods ||= [].freeze
end
2024-04-17 21:09:55 +00:00
end