amatsuda/kaminari — pull request #251 by lestercsp (2012-06-28 18:03:20+00:00)
Title: Support pagination in mounted sub apps in padrino

Hi, I used kaminari on a mounted padrino sub application and found that the pagination helpers don't get the correct current_path.

In sinatra_helpers.rb it is using env['PATH_INFO'] for the current_path. However if the app is mounted on "/path", the mount point is not read in env['PATH_INFO']. Using env['REQUEST_PATH'] instead solves the issue.