diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-26 04:05:04 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-26 04:05:04 +0200 |
| commit | fa0ccc43010297c0c10e3075095c0a9171989498 (patch) | |
| tree | 3d857550ce094a4c4e860ce25f1034923c30ce52 /config/initializers/new_rails_defaults.rb | |
| parent | c06723ee715512c2033c7786c48f15674585b56b (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 'config/initializers/new_rails_defaults.rb')
| -rw-r--r-- | config/initializers/new_rails_defaults.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config/initializers/new_rails_defaults.rb b/config/initializers/new_rails_defaults.rb deleted file mode 100644 index 8ec3186c..00000000 --- a/config/initializers/new_rails_defaults.rb +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | # Be sure to restart your server when you modify this file. | ||
| 2 | |||
| 3 | # These settings change the behavior of Rails 2 apps and will be defaults | ||
| 4 | # for Rails 3. You can remove this initializer when Rails 3 is released. | ||
| 5 | |||
| 6 | if defined?(ActiveRecord) | ||
| 7 | # Include Active Record class name as root for JSON serialized output. | ||
| 8 | ActiveRecord::Base.include_root_in_json = true | ||
| 9 | |||
| 10 | # Store the full class name (including module namespace) in STI type column. | ||
| 11 | ActiveRecord::Base.store_full_sti_class = true | ||
| 12 | end | ||
| 13 | |||
| 14 | # Use ISO 8601 format for JSON serialized times and dates. | ||
| 15 | ActiveSupport.use_standard_json_time_format = true | ||
| 16 | |||
| 17 | # Don't escape HTML entities in JSON, leave that for the #json_escape helper. | ||
| 18 | # if you're including raw json in an HTML page. | ||
| 19 | ActiveSupport.escape_html_entities_in_json = false \ No newline at end of file | ||
