-
- Downloads
Merge branch 'rename-abilities' into 'master'
Rename abilities to correspond contoller/model action names write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code ``` def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end ``` See merge request !896
No related branches found
No related tags found
Showing
- app/controllers/projects/issues_controller.rb 4 additions, 4 deletionsapp/controllers/projects/issues_controller.rb
- app/controllers/projects/merge_requests_controller.rb 4 additions, 4 deletionsapp/controllers/projects/merge_requests_controller.rb
- app/controllers/projects/notes_controller.rb 1 addition, 1 deletionapp/controllers/projects/notes_controller.rb
- app/controllers/projects/snippets_controller.rb 4 additions, 4 deletionsapp/controllers/projects/snippets_controller.rb
- app/controllers/projects/wikis_controller.rb 3 additions, 3 deletionsapp/controllers/projects/wikis_controller.rb
- app/controllers/snippets_controller.rb 3 additions, 3 deletionsapp/controllers/snippets_controller.rb
- app/models/ability.rb 46 additions, 33 deletionsapp/models/ability.rb
- app/services/issues/bulk_update_service.rb 1 addition, 1 deletionapp/services/issues/bulk_update_service.rb
- app/services/update_snippet_service.rb 2 additions, 2 deletionsapp/services/update_snippet_service.rb
- app/views/groups/group_members/_group_member.html.haml 1 addition, 1 deletionapp/views/groups/group_members/_group_member.html.haml
- app/views/projects/_aside.html.haml 2 additions, 2 deletionsapp/views/projects/_aside.html.haml
- app/views/projects/diffs/_parallel_view.html.haml 2 additions, 2 deletionsapp/views/projects/diffs/_parallel_view.html.haml
- app/views/projects/diffs/_text_file.html.haml 1 addition, 1 deletionapp/views/projects/diffs/_text_file.html.haml
- app/views/projects/issues/_discussion.html.haml 1 addition, 1 deletionapp/views/projects/issues/_discussion.html.haml
- app/views/projects/issues/index.html.haml 1 addition, 1 deletionapp/views/projects/issues/index.html.haml
- app/views/projects/issues/show.html.haml 3 additions, 3 deletionsapp/views/projects/issues/show.html.haml
- app/views/projects/merge_requests/_discussion.html.haml 1 addition, 1 deletionapp/views/projects/merge_requests/_discussion.html.haml
- app/views/projects/merge_requests/index.html.haml 1 addition, 1 deletionapp/views/projects/merge_requests/index.html.haml
- app/views/projects/merge_requests/show/_mr_box.html.haml 1 addition, 1 deletionapp/views/projects/merge_requests/show/_mr_box.html.haml
- app/views/projects/merge_requests/show/_mr_title.html.haml 1 addition, 1 deletionapp/views/projects/merge_requests/show/_mr_title.html.haml
Please register or sign in to comment