Skip to content

Commit 3f001d2

Browse files
committed
Fix RSC Pro recovery flag handling
1 parent e8c0f52 commit 3f001d2

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

react_on_rails/lib/generators/react_on_rails/install_generator.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def installation_prerequisites_met?
248248
# it on a clean worktree. On a dirty tree, use the read-only pro_gem_installed?
249249
# check to catch a missing gem without triggering auto-install.
250250
if has_worktree_issues && use_pro? && !pro_gem_installed?
251-
required_flag = missing_pro_required_flag
251+
required_flag = pro_requirement_flag
252252
GeneratorMessages.add_error(<<~MSG.strip)
253253
🚫 react_on_rails_pro gem is required for #{required_flag} but is not installed.
254254
Auto-install was skipped because the worktree has uncommitted changes.
@@ -453,7 +453,7 @@ def recovery_install_command
453453
flags << "--typescript" if options.typescript?
454454
flags << "--rspack" if options.rspack?
455455

456-
if options.rsc_pro?
456+
if use_rsc_pro_mode?
457457
flags << "--rsc-pro"
458458
elsif options.rsc?
459459
flags << "--rsc"
@@ -475,10 +475,6 @@ def rsc_pro_verification_message
475475
MSG
476476
end
477477

478-
def missing_pro_required_flag
479-
pro_requirement_flag
480-
end
481-
482478
def recovery_working_tree_lines
483479
[
484480
"If this run created or changed files, clean up your working tree before rerunning",

0 commit comments

Comments
 (0)