Commit cd088801 authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Simplify tag controller param handling

parent ac6be496
......@@ -31,12 +31,7 @@ module Projects
end
def bulk_destroy
unless params[:ids].present?
head :bad_request
return
end
tag_names = params[:ids] || []
tag_names = params.require(:ids) || []
if tag_names.size > LIMIT
head :bad_request
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