We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1faa663 commit b520acdCopy full SHA for b520acd
lib/rails/convert_constants_4_2_to_5_0.rb
@@ -1,7 +1,7 @@
1
# frozen_string_literal: true
2
3
Synvert::Rewriter.new 'rails', 'convert_constants_4_2_to_5_0' do
4
- configure(parser: Synvert::PARSER_PARSER)
+ configure(parser: Synvert::PRISM_PARSER)
5
6
description <<~EOS
7
It converts rails constants from 4.2 to 5.0.
@@ -15,7 +15,7 @@
15
# MissingSourceFile
16
# =>
17
# LoadError
18
- with_node node_type: 'const', to_source: 'MissingSourceFile' do
+ with_node node_type: 'constant_read_node', name: 'MissingSourceFile' do
19
replace_with 'LoadError'
20
end
21
0 commit comments