diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-08 17:11:13 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-08 17:11:13 -0300 |
commit | 069724cef5873b83720004772d1e874030cc9fff (patch) | |
tree | 06a69c77a67b99f7cf6421f49458ce0276f34e68 /config | |
parent | 127119f2c4db9038a7f34d1cc73ae1ed19cf0b8d (diff) | |
download | gitlab-ce-069724cef5873b83720004772d1e874030cc9fff.tar.gz |
Use singular resource for NotificationSetting
Since a user cannot have multiple NotificationSettings records for one
group/project we can use singular resource.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index fade07c0500..552385110dd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -406,7 +406,7 @@ Rails.application.routes.draw do resource :avatar, only: [:destroy] resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create] - resources :notification_settings, only: [:update] + resource :notification_setting, only: [:update] end end @@ -608,7 +608,7 @@ Rails.application.routes.draw do resources :forks, only: [:index, :new, :create] resource :import, only: [:new, :create, :show] - resources :notification_settings, only: [:create, :update] + resource :notification_setting, only: [:create, :update] resources :refs, only: [] do collection do |