Module: Gitlab::Graphql::Deprecations
- Extended by:
- ActiveSupport::Concern
- Included in:
- Types::BaseArgument, Types::BaseEnum::CustomValue, Types::BaseField
- Defined in:
- lib/gitlab/graphql/deprecations.rb,
lib/gitlab/graphql/deprecations/deprecation.rb
Defined Under Namespace
Classes: Deprecation
Instance Method Summary collapse
Instance Method Details
#visible?(ctx) ⇒ Boolean
14 15 16 |
# File 'lib/gitlab/graphql/deprecations.rb', line 14 def visible?(ctx) super && ctx[:remove_deprecated] == true ? deprecation.nil? : true end |