Commit 10ab01de by liyijie

fix: 恢复原来代码

parent de5cae65
......@@ -223,12 +223,12 @@ class SimpleController::BaseController < ::InheritedResources::Base
end
end
def end_of_association_chain
query_association_chain
def after_of_association_chain
after_association_chain(query_association_chain)
end
def after_of_association_chain
_association_chain = after_association_chain(end_of_association_chain)
def end_of_association_chain
_association_chain = after_of_association_chain
if _association_chain.respond_to?(:order)
_association_chain.order(id: :desc)
else
......@@ -238,7 +238,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
# 执行统计和sub_q
def ransack_association_chain
association = after_of_association_chain
association = end_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