summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-26 04:05:04 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-26 04:05:04 +0200
commitfa0ccc43010297c0c10e3075095c0a9171989498 (patch)
tree3d857550ce094a4c4e860ce25f1034923c30ce52 /app/models
parentc06723ee715512c2033c7786c48f15674585b56b (diff)
Stage 5: Rails 6.1 → 7.2 on Ruby 3.2.11
- 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+)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/page.rb2
1 files changed, 1 insertions, 1 deletions
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
112 end 112 end
113 113
114 def template_exists? 114 def template_exists?
115 File.exists? "#{full_public_template_path}.html.erb" 115 File.exist? "#{full_public_template_path}.html.erb"
116 end 116 end
117 117
118 def valid_template 118 def valid_template