diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 15:18:25 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 15:18:25 +1100 |
commit | 260bd5bf263683919bac17ce8dfebd153a45e8aa (patch) | |
tree | 7bd426c2523557f772f3c49f88d5e51fb86f8943 /app/controllers/request_controller.rb | |
parent | ac75a0f72e63ced0aee2a21718df5980bcfdeef1 (diff) |
Switch to pretty urls
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 24dbbeba0..749cf2d54 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -505,7 +505,7 @@ class RequestController < ApplicationController end def describe_state_requires_admin - @info_request = InfoRequest.find(params[:id]) + @info_request = InfoRequest.find_by_url_title!(params[:url_title]) # Check authenticated. We check is_owning_user # to get admin overrides (see is_owning_user? above) |