Commit ef8301ab by liyijie

fix: 修复assocaition chain的各个顺序

parent 58623d60
...@@ -223,12 +223,12 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -223,12 +223,12 @@ class SimpleController::BaseController < ::InheritedResources::Base
end end
end end
def after_of_association_chain def end_of_association_chain
after_association_chain(query_association_chain) query_association_chain
end end
def end_of_association_chain def after_of_association_chain
_association_chain = after_of_association_chain _association_chain = after_association_chain(query_association_chain)
if _association_chain.respond_to?(:order) if _association_chain.respond_to?(:order)
_association_chain.order(id: :desc) _association_chain.order(id: :desc)
else else
......
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