Commit d48d82d4 by liyijie

Fix collection method, should be save to cache

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