app/controllers/pulitzer/partials_controller.rb in pulitzer-0.15.11 vs app/controllers/pulitzer/partials_controller.rb in pulitzer-0.15.12

- old
+ new

@@ -43,9 +43,14 @@ def destroy @partial.destroy head :ok end + def upgrade + @partial = UpgradePartialVersion.new(@partial).call + render partial: 'show', locals: { partial: @partial } + end + protected def partial_params params[:partial].permit! end