-
- Downloads
Change Note#to_ability_name to 'note'
This is to be more consistent as there is already a :read_note policy in NotePolicy. To keep other behaviour the same we've introduced a Note#noteable_ability_name that is used anywhere this was expected.
Showing
- app/models/discussion.rb 1 addition, 0 deletionsapp/models/discussion.rb
- app/models/note.rb 4 additions, 0 deletionsapp/models/note.rb
- app/policies/note_policy.rb 1 addition, 1 deletionapp/policies/note_policy.rb
- app/services/notification_service.rb 1 addition, 1 deletionapp/services/notification_service.rb
- spec/models/note_spec.rb 13 additions, 7 deletionsspec/models/note_spec.rb
Please register or sign in to comment