Instead of this being here, I'd set this globally. Take a look at this: https://github.com/amatsuda/kaminari#general-configuration-options