Method: Pageflow::StorylinesController#update

Defined in:
app/controllers/pageflow/storylines_controller.rb

#updateObject

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.



30
31
32
33
34
35
36
37
38
# File 'app/controllers/pageflow/storylines_controller.rb', line 30

def update
  storyline = Storyline.find(params[:id])

  authorize!(:update, storyline)
  verify_edit_lock!(storyline.entry)
  storyline.update(storyline_params)

  respond_with(storyline)
end