Use singular resource for NotificationSetting

Since a user cannot have multiple NotificationSettings records for one
group/project we can use singular resource.
This commit is contained in:
Douglas Barbosa Alexandre 2016-04-08 17:11:13 -03:00
parent 127119f2c4
commit 069724cef5
1 changed files with 2 additions and 2 deletions

View File

@ -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