Commit d48d82d4 by liyijie

Fix collection method, should be save to cache

parent 9042ae94
......@@ -58,8 +58,8 @@ class SimpleController::BaseController < ::InheritedResources::Base
end
def collection
association = super
association = after_association_chain(association)
ransack_paginate(association)
get_collection_ivar || set_collection_ivar(
ransack_paginate(after_association_chain(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