app/controllers/pulitzer/partials_controller.rb in pulitzer-0.15.12 vs app/controllers/pulitzer/partials_controller.rb in pulitzer-0.15.13
- old
+ new
@@ -35,15 +35,15 @@
partials = Pulitzer::Partial.find params[:partial]
partials.each do |partial|
new_sort_order = params[:partial].index(partial.id.to_s)
partial.update_attribute(:sort_order, new_sort_order)
end
- head :ok
+ head :ok and return
end
def destroy
@partial.destroy
- head :ok
+ head :ok and return
end
def upgrade
@partial = UpgradePartialVersion.new(@partial).call
render partial: 'show', locals: { partial: @partial }