module KirguduBase class DynamicPages::Group < ::KirguduBase::DynamicPages::PageElement mergeable_attributes :visible, :enabled validates_presence_of :visible, :enabled def initialize(options = {}) self.elements = [] super(options) end attr_accessor :elements def to_external_hash(options = {}) options ||= {} options.merge!({ elements: elements }) super(options) end end end