You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kaminari adds the page method to ActiveRecord::Relation. Kaminari actually makes this method name configurable but WillFilter uses the 'page' method name and doesn't support a configuration option to change it. As a result, in applications using will_paginate, WillFilter::Filter#results blows up:
defresults@results ||= begin
...
ifcustom_conditions?recs=process_custom_conditions(recs.all)recs=Kaminari.paginate_array(recs)endrecs=recs.page(page).per(per_page)recs.wf_filter=selfrecsendend
on the call to "per" as the will_paginate page method will have been called instead of the Kaminari one.
WillFilter should make the method name configurable the same way Kaminari daes.
The text was updated successfully, but these errors were encountered:
Kaminari adds the page method to ActiveRecord::Relation. Kaminari actually makes this method name configurable but WillFilter uses the 'page' method name and doesn't support a configuration option to change it. As a result, in applications using will_paginate, WillFilter::Filter#results blows up:
on the call to "per" as the will_paginate page method will have been called instead of the Kaminari one.
WillFilter should make the method name configurable the same way Kaminari daes.
The text was updated successfully, but these errors were encountered: