We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cce1d commit ec7416fCopy full SHA for ec7416f
app/controllers/api/base_controller.rb
@@ -47,7 +47,7 @@ def bad_url
47
# clause "key = value" is replaced by "key::text ~ value*", where "value*" is
48
# "value" with the tilde removed.
49
def query(model, params)
50
- where_params = params.slice(*model.column_names)
+ where_params = params.permit!.to_hash.slice(*model.column_names)
51
52
limit = nil
53
if params.has_key? "limit"
0 commit comments