Sha256: b0e89b14846e7967a5b5d1147a1cdff1838ae8313896a97aa2b019711e5e4857

Contents?: true

Size: 629 Bytes

Versions: 11

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module Maglev
  module StandaloneSectionsConcern
    extend ActiveSupport::Concern

    included do
      include Maglev::ServicesConcern
      include Maglev::FetchersConcern
      include Maglev::ContentLocaleConcern

      helper Maglev::PagePreviewHelper
    end

    private

    def fetch_maglev_site_scoped_sections
      fetch_maglev_site
      fetch_maglev_theme
      fetch_maglev_dummy_page
      fetch_maglev_page_sections
    end

    def fetch_maglev_dummy_page
      @fetch_maglev_page = ::Maglev::Page.new(title: 'DummyPage', sections: fetch_maglev_site.sections)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
maglevcms-1.1.6 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.1.5 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.1.4 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.1.3 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.1.2 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.1.1 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.1.0 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.0.0 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.0.0.rc3 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.0.0.rc2 app/controllers/concerns/maglev/standalone_sections_concern.rb
maglevcms-1.0.0.rc1 app/controllers/concerns/maglev/standalone_sections_concern.rb