From 0bfdaa787cc01a57145e2676b47f403895315c02 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 13 Aug 2025 16:49:35 +0200 Subject: [PATCH] Drop RailsVersion This is the same as `NextRails.next?`... --- app/lib/rails_version.rb | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 app/lib/rails_version.rb diff --git a/app/lib/rails_version.rb b/app/lib/rails_version.rb deleted file mode 100644 index 167871aa..00000000 --- a/app/lib/rails_version.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Check which Rails version is used by the application -# -# This allows code to be migrated to a newer version of Rails while keeping the old code around -# until the migration to the newer Rails version is done. -# -# Use this module in combination with the gem next_rails and its Gemfile.next/Gemfile.next.lock. -# -# 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.next? - Rails::VERSION::MAJOR == 8 && Rails::VERSION::MINOR == 0 - end -end