From 38e7dd7ec881257d6ccf0d8664b8f7e7db4be6bd Mon Sep 17 00:00:00 2001 From: Roman Samoilov <2270393+rsamoilov@users.noreply.github.com> Date: Tue, 7 May 2024 09:51:19 +0100 Subject: [PATCH] Correctly init console in Rails mode --- lib/rage/cli.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/rage/cli.rb b/lib/rage/cli.rb index b39e8436..72905501 100644 --- a/lib/rage/cli.rb +++ b/lib/rage/cli.rb @@ -116,10 +116,8 @@ def console def environment require File.expand_path("config/application.rb", Dir.pwd) - # in Rails mode we delegate code loading to Rails, and thus need - # to manually load application code for CLI utilities to work if Rage.config.internal.rails_mode - require "rage/setup" + require File.expand_path("config/environment.rb", Dir.pwd) end end