Skip to content
Snippets Groups Projects
Unverified Commit 342d5537 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent d5947ada
No related branches found
No related tags found
No related merge requests found
Showing
with 37 additions and 37 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment