Skip to content
Snippets Groups Projects
Select Git revision
20 results

lib

  • Clone with SSH
  • Clone with HTTPS
  • Forked from GitLab.org / GitLab FOSS
    Loading
    user avatar
    Dmitriy Zaporozhets authored
    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
    9f166a86
    History
    Name Last commit Last update
    ..