Merge pull request #3618 from hennevogel/bugfix/rails-version

Put RailsVersion into autoloaded path
This commit is contained in:
Henne Vogelsang 2025-08-12 17:39:34 +02:00 committed by GitHub
commit 8e173ef713
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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