From 04beb397ee36a632b0ebe5598ec6ad29501a2be7 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 12 Aug 2025 17:23:47 +0200 Subject: [PATCH] Put RailsVersion into autoloaded path Also configure it for the next rails version --- {lib => app/lib}/rails_version.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {lib => app/lib}/rails_version.rb (86%) diff --git a/lib/rails_version.rb b/app/lib/rails_version.rb similarity index 86% rename from lib/rails_version.rb rename to app/lib/rails_version.rb index 813fed29..415b141f 100644 --- a/lib/rails_version.rb +++ b/app/lib/rails_version.rb @@ -8,7 +8,7 @@ # Methods of this module must match whatever Rails version is defined in Gemfile.next.lock. # Matching on major and minor versions should be enough for most migrations. module RailsVersion - def self.is_6? - Rails::VERSION::MAJOR == 6 + def self.next? + Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 2 end end