Class: Maglev::PublishedPagePreviewController

Inherits:
ApplicationController show all
Includes:
ContentLocaleConcern, RenderingConcern
Defined in:
app/controllers/maglev/published_page_preview_controller.rb

Instance Method Summary collapse

Methods included from ResourceIdConcern

#resource_id

Instance Method Details

#indexObject



15
16
17
18
19
20
21
# File 'app/controllers/maglev/published_page_preview_controller.rb', line 15

def index
  # use the title + SEO informations from the published payload
  # Warning: the page may not exist even in draft
  maglev_page&.apply_published_payload

  render_maglev_page
end