Commit c05abbb4 by liyijie

end_of_association_chain include after_association_chain, for resource

with after_association_chain
parent 47b1d96c
...@@ -141,9 +141,13 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -141,9 +141,13 @@ class SimpleController::BaseController < ::InheritedResources::Base
association association
end end
def end_of_association_chain
after_association_chain(super)
end
def collection def collection
get_collection_ivar || set_collection_ivar( get_collection_ivar || set_collection_ivar(
ransack_paginate(after_association_chain(end_of_association_chain)) ransack_paginate(end_of_association_chain)
) )
end end
......
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