Skip to content

Conversation

@rstammer
Copy link
Contributor

@rstammer rstammer commented Jun 6, 2025

Rails v8.0 compability

📚 Motivation

We observed problems loading our Rails kernels when switching to Rails v8.0.2. The Rails kernels were not loading stating the error Kernel died: cannot load such file -- rails/console/app. It turns out that Rails::ConsoleMethods are referenced and a quick look to https://github.com/rails/rails/blob/main/railties/lib/rails/console/methods.rb reveals its deprecation.

⚙️ What's inside?

  • We dropped extending IRuby::Kernel by the deprecated module. Also alongside this, we observed it only works when upgrading iruby to v0.8.1.
  • Updated GitHub actions config with more recent versions

Bildschirmfoto 2025-06-06 um 10 46 52

It's works good for our specific setup, but I kindly ask @Yuki-Inoue to verify if its compatible with possible other situations that we did not consider 🤔 Let me know if I can extend on this.

rstammer and others added 4 commits June 6, 2025 10:39
railties/lib/rails/console/methods.rb has been deprecated and will be
removed in Rails 8.1.

In order to make it work, we have to drop the reference to it and
upgrade iruby to v0.8.1.

Co-authored-by: Daniel Nunez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants