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
#initialize(*args, **kwargs, &block) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/gitlab/graphql/deprecations.rb', line 14 def initialize(*args, **kwargs, &block) init_gitlab_deprecation(kwargs) super update_deprecation_description end |
#visible?(ctx) ⇒ Boolean
22 23 24 |
# File 'lib/gitlab/graphql/deprecations.rb', line 22 def visible?(ctx) super && ctx[:remove_deprecated] == true ? deprecation.nil? : true end |