Use toggle_select action for legislation proposals

The `update` action is usually expected to behave the same way it does
everywhere else, which is updating a record using the `params` hash.

The name `toggle_select` comes from the name we use in a similar
situation for budget investments.
This commit is contained in:
Javi Martín
2018-09-17 17:36:41 +02:00
parent 806b1fb3ca
commit 667c2c82b5
3 changed files with 13 additions and 12 deletions

View File

@@ -194,7 +194,9 @@ namespace :admin do
namespace :legislation do
resources :processes do
resources :questions
resources :proposals
resources :proposals do
member { patch :toggle_selection }
end
resources :draft_versions
end
end