Commit c61bdfc6 by liyijie

fix: 修改after_of_asscoaition_chain

parent 7fe865fa
...@@ -212,12 +212,12 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -212,12 +212,12 @@ class SimpleController::BaseController < ::InheritedResources::Base
end end
end end
def after_of_asscoaition_chain def after_of_association_chain
after_association_chain(query_association_chain) after_association_chain(query_association_chain)
end end
def end_of_association_chain def end_of_association_chain
_association_chain = after_of_asscoaition_chain _association_chain = after_of_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