Commit cd088801 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Simplify tag controller param handling

parent ac6be496
...@@ -31,12 +31,7 @@ module Projects ...@@ -31,12 +31,7 @@ module Projects
end end
def bulk_destroy def bulk_destroy
unless params[:ids].present? tag_names = params.require(:ids) || []
head :bad_request
return
end
tag_names = params[:ids] || []
if tag_names.size > LIMIT if tag_names.size > LIMIT
head :bad_request head :bad_request
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment