class Wco::PublishersController

def update

def update
  @publisher = Wco::Publisher.find params[:id]
  authorize! :update, @publisher
  if @publisher.update params[:publisher].permit!
    flash_notice "Updated publisher"
  else
    flash_alert "Cannot update publisher: #{@publisher.errors.messages}"
  end
  redirect_to action: 'index'
end