diff options
| author | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-03 16:41:05 +0200 |
|---|---|---|
| committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-06-03 16:41:05 +0200 |
| commit | 4504959aa6ce6667b9fd5b68ff24a612cb7c027b (patch) | |
| tree | be88c9ff22e0ec8ac6af5c31bca7e4f2f318c62c /lib/api | |
| parent | 2ad5b30b6c02a3e3f84275121a709f5de75dac48 (diff) | |
| download | gitlab-ce-4504959aa6ce6667b9fd5b68ff24a612cb7c027b.tar.gz | |
Make `resolvable_types` a class method
This turns Notable::RESOLVABLE_TYPES into a
`Notable.resolvable_types`. That allows us to override it in EE.
Diffstat (limited to 'lib/api')
| -rw-r--r-- | lib/api/discussions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/discussions.rb b/lib/api/discussions.rb index 5928ee1657b..693172b7d08 100644 --- a/lib/api/discussions.rb +++ b/lib/api/discussions.rb @@ -206,7 +206,7 @@ module API delete_note(noteable, params[:note_id]) end - if Noteable::RESOLVABLE_TYPES.include?(noteable_type.to_s) + if Noteable.resolvable_types.include?(noteable_type.to_s) desc "Resolve/unresolve an existing #{noteable_type.to_s.downcase} discussion" do success Entities::Discussion end |
