We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3efbf commit 882c9ecCopy full SHA for 882c9ec
lib/rails/convert_configs_7_2_to_8_0.rb
@@ -0,0 +1,15 @@
1
+# frozen_string_literal: true
2
+
3
+Synvert::Rewriter.new 'rails', 'convert_configs_7_2_to_8_0' do
4
+ configure(parser: Synvert::PRISM_PARSER)
5
6
+ description <<~EOS
7
+ It converts rails configs from 7.1 to 8.0
8
9
+ 1. it sets `config.load_defaults 8.0` in config/application.rb.
10
+ EOS
11
12
+ if_gem 'rails', '~> 8.0.0'
13
14
+ call_helper 'rails/set_load_defaults', rails_version: '8.0'
15
+end
lib/rails/upgrade_7_2_to_8_0.rb
@@ -0,0 +1,8 @@
+Synvert::Rewriter.new 'rails', 'upgrade_7_2_to_8_0' do
+ description 'It upgrades rails 7.2 to 8.0.'
+ add_snippet 'rails', 'convert_configs_7_2_to_8_0'
+ add_snippet 'rails', 'new_enum_syntax'
0 commit comments