Commit aa62ee95 by liyijie

feat: query_params to_unsafe_h

parent 60bb4ac5
......@@ -347,6 +347,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
end
def ransack_association(association, query_params)
query_params = query_params.to_unsafe_h if query_params.present?
# scopes,代表前端直接调用后台的scope过滤
# scopes item如果是hash,则 key: scope名称 value: 转成symbolize keys
if query_params[:scopes].present?
......
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