Class: GraphQL::Modernize::Rules::LoadApplicationObjectFailedError
- Defined in:
- lib/graphql/modernize/rules/relay.rb
Constant Summary collapse
- OLD_NAME =
"GraphQL::Schema::Resolver::LoadApplicationObjectFailedError"- NEW_NAME =
"GraphQL::LoadApplicationObjectFailedError"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, node_pattern, node_types, rule, #visit
Constructor Details
This class inherits a constructor from GraphQL::Modernize::Rules::Base
Instance Method Details
#on_match(node, _captures) ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/graphql/modernize/rules/relay.rb', line 64 def on_match(node, _captures) return unless constant_source(node) == OLD_NAME add_offense(node.location, message: "Replace `#{OLD_NAME}` with `#{NEW_NAME}`") do |rw| replace_constant(rw, node, NEW_NAME) end end |