Restore detection of pagination gems in ShowController