-
- Downloads
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 Signed-off-by:Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
- app/controllers/projects/issues_controller.rb 1 addition, 1 deletionapp/controllers/projects/issues_controller.rb
- app/controllers/projects/merge_requests_controller.rb 1 addition, 1 deletionapp/controllers/projects/merge_requests_controller.rb
- app/controllers/projects/snippets_controller.rb 1 addition, 1 deletionapp/controllers/projects/snippets_controller.rb
- app/controllers/projects/wikis_controller.rb 2 additions, 2 deletionsapp/controllers/projects/wikis_controller.rb
- app/controllers/snippets_controller.rb 1 addition, 1 deletionapp/controllers/snippets_controller.rb
- app/models/ability.rb 13 additions, 13 deletionsapp/models/ability.rb
- app/services/issues/bulk_update_service.rb 1 addition, 1 deletionapp/services/issues/bulk_update_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
- app/views/projects/milestones/show.html.haml 1 addition, 1 deletionapp/views/projects/milestones/show.html.haml
- app/views/projects/notes/_notes_with_form.html.haml 1 addition, 1 deletionapp/views/projects/notes/_notes_with_form.html.haml
Please register or sign in to comment