Respond to .json only

This commit is contained in:
Alfredo Sumaran 2016-05-09 15:54:46 -05:00
parent 73b528f9a3
commit 812ae973db

View file

@ -156,7 +156,12 @@ class Projects::IssuesController < Projects::ApplicationController
def bulk_update
result = Issues::BulkUpdateService.new(project, current_user, bulk_update_params).execute
redirect_back_or_default(default: { action: 'index' }, options: { notice: "#{result[:count]} issues updated" })
respond_to do |format|
format.json do
render json: { notice: "#{result[:count]} issues updated" }
end
end
end
protected