Class: Maglev::SectionsContentStore
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Maglev::SectionsContentStore
- Includes:
- SectionsConcern, Translatable
- Defined in:
- app/models/maglev/sections_content_store.rb
Instance Method Summary collapse
-
#container ⇒ Object
associations ##.
-
#published ⇒ Object
scopes ##.
-
#sections ⇒ Object
translations ##.
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
Instance Method Details
#container ⇒ Object
associations ##
26 |
# File 'app/models/maglev/sections_content_store.rb', line 26 belongs_to :container, polymorphic: true |
#published ⇒ Object
scopes ##
29 |
# File 'app/models/maglev/sections_content_store.rb', line 29 scope :published, -> { where(published: true) } |
#sections ⇒ Object
translations ##
32 |
# File 'app/models/maglev/sections_content_store.rb', line 32 translates :sections |