ArgumentError: wrong number of arguments (given 0, expected 1)
cpruitt opened this issue · 1 comments
cpruitt commented
will_paginate
conflicts with Rails 5.2.2.1 and 6.0.0.beta2+.
There is already a PR open to fix this (#587), but since this also affects 5.2.2.1 I'm opening the issue as well for the sake of visibility.
will_paginate redefines the private method select_for_count on ActiveRecord with a different number of arguments (the Rails private method accepts zero and will_paginate accepts one) causing an ArgumentError to be raised. Renaming this method prevents Rails from calling the method defined by will_paginate.