Apply Patch from https://github.com/amatsuda/kaminari/pull/433/files