diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-11-06 09:13:13 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-18 14:03:49 +0000 |
commit | 7aae38fb8c0469d9db030689d2eb5e31cfaac6af (patch) | |
tree | 45ff6c675a65018b9a97a0f1f9ebe0d17eb87c88 /config/routes.rb | |
parent | 49758c23ccca57483413a4df10308e95fb7c8cc4 (diff) |
Move outgoing message admin actions to RESTful model.
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 463cb5c1b..8f3087d17 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -260,10 +260,13 @@ Alaveteli::Application.routes.draw do #### #### AdminOutgoingMessage controller - match '/admin/outgoing/edit/:id' => 'admin_outgoing_message#edit', :as => :admin_outgoing_edit - match '/admin/outgoing/destroy/:id' => 'admin_outgoing_message#destroy', :as => :admin_outgoing_destroy - match '/admin/outgoing/update/:id' => 'admin_outgoing_message#update', :as => :admin_outgoing_update - match '/admin/outgoing/resend/:id' => 'admin_outgoing_message#resend', :as => :admin_outgoing_resend + scope '/admin', :as => 'admin' do + resources :outgoing_messages, + :controller => 'admin_outgoing_message', + :only => [:edit, :update, :destroy] do + post 'resend', :on => :member + end + end #### #### AdminUser controller |