From fa0ccc43010297c0c10e3075095c0a9171989498 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 26 Jun 2026 04:05:04 +0200 Subject: Stage 5: Rails 6.1 → 7.2 on Ruby 3.2.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump Rails to 7.2.3, Ruby to 3.2.11 (new gemset rails7-upgrade) - pg pinned to 1.4.6 (bridge: Ruby 3.2 compatible, PostgreSQL 9.6 tolerant) - acts-as-taggable-on → 12.x (Rails 7.2 + Ruby 3.2 support) - awesome_nested_set → 3.7.0 (Rails 7.2 support, avoids 3.9.0 lft/rgt bug) - globalize → 7.0 (Rails 7.x required) - libxml-ruby → 5.x (Ruby 3.2 required) - unicorn → 6.x; fix unicorn.rb: RAILS_ROOT→Rails.root, RAILS_ENV→ENV, File.exists?→File.exist? - Add puma for development server - Remove dead initializers: assets.rb, ruby2.rb, backtrace_silencers.rb, new_rails_defaults.rb - Fix File.exists? → File.exist? in page.rb and authors_importer.rb - Add routing_filter_rails71_patch.rb (restores params[:locale] on Rails 7.1+) --- app/models/page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/page.rb b/app/models/page.rb index d1e7439..ca3a8be 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -112,7 +112,7 @@ class Page < ApplicationRecord end def template_exists? - File.exists? "#{full_public_template_path}.html.erb" + File.exist? "#{full_public_template_path}.html.erb" end def valid_template -- cgit v1.3