gitlab-org--gitlab-foss/spec/models
Dmitriy Zaporozhets 342d553709
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>
2015-06-26 15:55:56 +02:00
..
concerns Replace remaining references to Note.create_cross_reference_note 2015-06-22 12:13:46 +02:00
hooks Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
members Rename abilities to correspond contoller/model action names 2015-06-26 15:55:56 +02:00
project_services Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
application_setting_spec.rb session_expire_seconds => session_expire_delay 2015-06-10 22:10:00 -04:00
broadcast_message_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
commit_range_spec.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
commit_spec.rb Update mock and stub syntax for specs 2015-06-22 12:13:46 +02:00
deploy_key_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
deploy_keys_project_spec.rb Fix Style/Blocks cop violations 2015-06-22 16:00:54 -04:00
event_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
external_issue_spec.rb Add to_reference for models that support references 2015-05-26 15:48:30 -04:00
external_wiki_service_spec.rb Change foo.should syntax to expect(foo).to in specs 2015-06-13 18:37:30 -04:00
forked_project_link_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
group_spec.rb Add to_reference for models that support references 2015-05-26 15:48:30 -04:00
issue_spec.rb Use to_reference for issue and merge request mentionable specs 2015-06-22 12:13:46 +02:00
key_spec.rb ensure_length_of -> validate_length_of 2015-06-10 01:31:26 -04:00
label_link_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
label_spec.rb Support only double quotes for multi-word label references 2015-05-26 15:49:20 -04:00
member_spec.rb Re-annotate models 2015-05-03 13:38:27 -07:00
merge_request_spec.rb Use to_reference for issue and merge request mentionable specs 2015-06-22 12:13:46 +02:00
milestone_spec.rb Update mock and stub syntax for specs 2015-06-22 12:13:46 +02:00
namespace_spec.rb Update mock and stub syntax for specs 2015-06-22 12:13:46 +02:00
note_spec.rb Rename abilities to correspond contoller/model action names 2015-06-26 15:55:56 +02:00
project_security_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
project_snippet_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
project_spec.rb Update mock and stub syntax for specs 2015-06-22 12:13:46 +02:00
project_team_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00
project_wiki_spec.rb Fix Style/SpaceInsideHashLiteralBraces cop violations 2015-06-22 14:41:00 -04:00
protected_branch_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
repository_spec.rb Refactor repository specs 2015-03-22 11:01:45 -07:00
service_spec.rb Merge branch 'master' into rubocop-for-tests 2015-06-23 10:44:03 +02:00
snippet_spec.rb Make snippet filename optional. 2015-06-20 01:06:57 +02:00
user_spec.rb Only look up Commit authors/committers by email 2015-06-23 18:07:15 -04:00
wiki_page_spec.rb Fix Style/SpaceInsideHashLiteralBraces cop violations 2015-06-22 14:41:00 -04:00