Skip to content

Commit

Permalink
Require new "rails/console/methods" for Rails 8
Browse files Browse the repository at this point in the history
This replaced "rails/console/app".
See rails/rails#51760
  • Loading branch information
rosa committed May 21, 2024
1 parent 1555763 commit ac72079
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ GEM
marcel (1.0.4)
method_source (1.0.0)
mini_mime (1.1.5)
mini_portile2 (2.8.6)
minitest (5.18.1)
mocha (2.0.4)
ruby2_keywords (>= 0.0.5)
Expand Down Expand Up @@ -197,8 +198,8 @@ GEM
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sqlite3 (1.6.3-arm64-darwin)
sqlite3 (1.6.3-x86_64-linux)
sqlite3 (1.6.3)
mini_portile2 (~> 2.8.0)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
Expand All @@ -211,6 +212,7 @@ GEM

PLATFORMS
arm64-darwin-21
arm64-darwin-22
x86_64-linux

DEPENDENCIES
Expand Down
9 changes: 7 additions & 2 deletions lib/console1984/supervisor.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
require 'active_support/all'
require 'rails/console/app'
require "active_support/all"

if Rails.version >= "8"
require "rails/console/methods"
else
require "rails/console/app"
end

# Entry point to the system. In charge of installing everything
# and starting and stopping sessions.
Expand Down

0 comments on commit ac72079

Please sign in to comment.