Skip to content

Commit ca77677

Browse files
committed
fix rails_test_app/create_app.rb
1 parent bde4b54 commit ca77677

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

rails_test_app/create_app.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,27 @@ def copy_template(file, target_path = nil)
147147
require "tmpdir"
148148
Dir.mktmpdir("logstruct_rails_new_") do |tmpdir|
149149
Dir.chdir(tmpdir) do
150-
T.unsafe(self).system(clean_env, *cmd) || abort("Failed to create Rails application")
150+
# Call system with a statically-sized argument list to satisfy Sorbet
151+
ruby_exec, dash_e, loader_code, = cmd
152+
system(
153+
clean_env,
154+
ruby_exec,
155+
dash_e,
156+
loader_code,
157+
"new",
158+
RAILS_APP_DIR,
159+
"--skip-git",
160+
"--skip-keeps",
161+
"--skip-action-cable",
162+
"--skip-sprockets",
163+
"--skip-javascript",
164+
"--skip-hotwire",
165+
"--skip-jbuilder",
166+
"--skip-asset-pipeline",
167+
"--skip-bootsnap",
168+
"--api",
169+
"-T"
170+
) || abort("Failed to create Rails application")
151171
end
152172
end
153173

0 commit comments

Comments
 (0)