debian-mirror-gitlab/lib/api/validations/validators/integer_none_any.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
320 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
module API
module Validations
module Validators
2021-02-22 17:27:13 +05:30
class IntegerNoneAny < IntegerOrCustomValue
private
2020-04-22 19:07:51 +05:30
2021-02-22 17:27:13 +05:30
def extract_custom_values(_options)
[IssuableFinder::Params::FILTER_NONE, IssuableFinder::Params::FILTER_ANY]
2020-04-22 19:07:51 +05:30
end
end
end
end
end