gitlabhq/gitlabhq — pull request #3332 by zzet (2013-03-24 08:38:14+00:00)
Title: Fix json view files

``` ruby
#"127.0.0.1", "REQUEST_METHOD"=>"GET", "REQUEST_PATH"=>"/project_path_with_namespace/tree/master/full/path/to/file.json", "PATH_INFO"=>"/project_path_with_namespace">
@request_method="GET",
@filtered_parameters={"action"=>"show", "controller"=>"tree", "project_id"=>"project_path_with_namespace", "id"=>"master/full/path/to/file.json"},
@method="GET",
@fullpath="/project_path_with_namespace/tree/master/full/path/to/file.json">
```

Correctly extract refs from `id`. Rails can parse request better than we do it.