Method: Pageflow::Editor::EntriesController#show

Defined in:
app/controllers/pageflow/editor/entries_controller.rb

#showObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
26
27
28
29
30
31
32
33
# File 'app/controllers/pageflow/editor/entries_controller.rb', line 23

def show
  @entry = DraftEntry.find(params[:id])
  authorize!(:edit, @entry.to_model)

  @entry_config = Pageflow.config_for(@entry)

  respond_to do |format|
    format.html
    format.json
  end
end