Commit 9da08e62 by liyijie

feat: 增加collection_of_association_chain

parent 10ab01de
......@@ -236,9 +236,13 @@ class SimpleController::BaseController < ::InheritedResources::Base
end
end
def collection_of_association_chain
end_of_association_chain
end
# 执行统计和sub_q
def ransack_association_chain
association = end_of_association_chain
association = collection_of_association_chain
if params[:group_keys].present?
statistics_association = association.unscope(:order).distinct
if defined?(Com::CounterStorage) && Array(params[:group_keys]).count > 1
......
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