Class: Maglev::SectionsContentStore

Inherits:
ApplicationRecord show all
Includes:
SectionsConcern, Translatable
Defined in:
app/models/maglev/sections_content_store.rb

Instance Method Summary collapse

Methods included from SectionsConcern

#delete_section, #find_section_block_by_id, #find_section_by_id, #find_sections_by_type, #position_of_section, #prepare_sections, #prepare_sections_translations, #reorder_sections, #section_ids

Methods included from Translatable

#translate_attr_in, #translations_for

Methods inherited from ApplicationRecord

mysql?

Instance Method Details

#containerObject

associations ##



26
# File 'app/models/maglev/sections_content_store.rb', line 26

belongs_to :container, polymorphic: true

#publishedObject

scopes ##



29
# File 'app/models/maglev/sections_content_store.rb', line 29

scope :published, -> { where(published: true) }

#sectionsObject

translations ##



32
# File 'app/models/maglev/sections_content_store.rb', line 32

translates :sections