diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-11-19 10:25:05 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-11-19 11:27:22 +0000 |
commit | 06771a09cf73d28b1f3520817f9a3dc03cc7b877 (patch) | |
tree | 35e00bd24027e9f1525ca019502d8abeeb3b182e /spec/controllers/request_controller_spec.rb | |
parent | bb233e381c2607788a91534a46c89f5fae6dce06 (diff) |
Add extra censor rule routes
Adds specific routes for creating censor rules associated with an info
request or user.
Creates:
POST /admin/info_requests/:info_request_id/censor_rules(.:format)
GET /admin/info_requests/:info_request_id/censor_rules/new(.:format)
POST /admin/users/:user_id/censor_rules(.:format)
GET /admin/users/:user_id/censor_rules/new(.:format)
Using these routes prevents the ID of the association object being lost
when re-rendering the form on an unsuccessful persistence attempt.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions