Commit 70b1be3a by liyijie

Do not use distinct, or sum will be error

parent 00a43072
......@@ -52,7 +52,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
def ransack_paginate(association)
association.ransack(
params[:q]
).result.distinct.paginate(
).result.paginate(
page: params[:page], per_page: params[:per_page]
)
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