Commit 876d43b9 authored by Jasper Maes's avatar Jasper Maes

Rails5 fix no implicit conversion of Hash into String....

Rails5 fix no implicit conversion of Hash into String. ActionController::Parameters no longer returns an hash in Rails 5
parent 7cf571e9
---
title: Rails5 fix no implicit conversion of Hash into String. ActionController::Parameters
no longer returns an hash in Rails 5
merge_request: 19792
author: Jasper Maes
type: fixed
......@@ -272,7 +272,8 @@ module API
attrs[key] = params_hash[key]
end
end
ActionController::Parameters.new(attrs).permit!
permitted_attrs = ActionController::Parameters.new(attrs).permit!
Gitlab.rails5? ? permitted_attrs.to_h : permitted_attrs
end
def filter_by_iid(items, iid)
......
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