Re: A possible fix for issue 340

See amatsuda/kaminari#348.

Thank you.