-
- Downloads
Use the `{Push,Merge}AccessLevel` models in the UI.
1. Improve error handling while creating protected branches. 2. Modify coffeescript code so that the "Developers can *" checkboxes send a '1' or '0' even when using AJAX. This lets us keep the backend code simpler. 3. Use services for both creating and updating protected branches. Destruction is taken care of with `dependent: :destroy`
Showing
- app/controllers/projects/protected_branches_controller.rb 17 additions, 7 deletionsapp/controllers/projects/protected_branches_controller.rb
- app/models/protected_branch.rb 10 additions, 2 deletionsapp/models/protected_branch.rb
- app/models/protected_branch/merge_access_level.rb 2 additions, 0 deletionsapp/models/protected_branch/merge_access_level.rb
- app/models/protected_branch/push_access_level.rb 2 additions, 0 deletionsapp/models/protected_branch/push_access_level.rb
- app/services/protected_branches/base_service.rb 17 additions, 0 deletionsapp/services/protected_branches/base_service.rb
- app/services/protected_branches/create_service.rb 19 additions, 0 deletionsapp/services/protected_branches/create_service.rb
- app/services/protected_branches/update_service.rb 21 additions, 0 deletionsapp/services/protected_branches/update_service.rb
Please register or sign in to comment