osem-fcy/app/lib/rails_version.rb
Henne Vogelsang ba2b2b7fc9
Update Rails to 7.2 and next Rails to 8.0
Only needed some changes to the serializing in Conference.
2025-08-13 11:45:58 +02:00

14 lines
589 B
Ruby

# 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