diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-28 16:04:30 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:49:14 +1100 |
commit | 43230ddb09284bce0ef8635f805acc2a1190809a (patch) | |
tree | 08e01ff1d03bf4672fa9ac2b60d4353983f9be53 /app/controllers/request_controller.rb | |
parent | d9fd0afaca38c0818ebd1221bd4843014ad6992c (diff) |
New request controller action for requires_admin state with message
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 3d9559c8b..c382a55f1 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -504,6 +504,11 @@ class RequestController < ApplicationController end end + def describe_state_requires_admin + @info_request = InfoRequest.find(params[:id]) + @info_request.set_described_state("requires_admin", nil, params[:message]) + end + # Used for links from polymorphic URLs e.g. in Atom feeds - just redirect to # proper URL for the message the event refers to def show_request_event |