summaryrefslogtreecommitdiff
path: root/config/environments/development.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 16:58:53 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 16:58:53 +0200
commit420506e58fdfc84f1a5bede0a01dedf0af3bb4f3 (patch)
tree57726b40e8aa9ccf80f874f39d3facefc0331420 /config/environments/development.rb
parent241d5e91b2b6716e2861cc77d319c3d3568343a8 (diff)
Stage 7: Rails 7.2 → 8.1 on Ruby 3.2.11
- Bump Rails to 8.1.3 (Ruby unchanged at 3.2.11, new gemset rails8-upgrade) - config.load_defaults 8.1; merge app:update diffs for all environment files - Remove routing-filter 0.7.0; replace with native scope '(:locale)' in routes.rb and default_url_options in ApplicationController - Delete config/initializers/routing_filter_rails71_patch.rb - Replace vendored TinyMCE 3.x (~200 files) with tinymce-rails ~> 8.3; migrate admin_interface.js from jQuery .tinymce()/advanced theme to tinymce.init(); add config/tinymce.yml; note: TinyMCE 7+ is GPL - rails-i18n ~> 8.0 added explicitly (previously indirect dependency) - awesome_nested_set, acts-as-taggable-on pinned to git main/master (gemspec activerecord < 8.1 ceiling; no functional incompatibility; repin to version once upstream releases updated gemspecs) - globalize ~> 7.0, libxml-ruby ~> 5.0, nokogiri ~> 1.18, pg ~> 1.5 - sass-rails, coffee-rails, uglifier moved from :assets group to main (Sprockets 4 convention; :assets group no longer meaningful) - Node: head, draft, lock_owner marked belongs_to optional: true - Page: node, user, editor marked belongs_to optional: true - Static assets in public/images/ and public/javascripts/ referenced via plain HTML tags; Rails 8 load_defaults raises on pipeline helpers for undeclared assets - sessions_controller_test.rb: remove stale require and dead rescue_action - users_controller_test.rb: assert button[type=submit] not input[type=submit] (Rails 8 button_to renders <button> not <input>) - test_helper.rb: node.reload after children.create! (awesome_nested_set 3.9.0 does not refresh parent in memory after callback) - 129 runs, 339 assertions, 3 failures, 0 errors — identical baseline to 7.2
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb38
1 files changed, 25 insertions, 13 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 1c26f7d..56174f8 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,26 +1,38 @@
1# Settings specified here will take precedence over those in config/environment.rb 1require "active_support/core_ext/integer/time"
2 2
3Cccms::Application.configure do 3Rails.application.configure do
4 # In the development environment your application's code is reloaded on
5 # every request. This slows down response time but is perfect for development
6 # since you don't have to restart the webserver when you make code changes.
7 config.enable_reloading = true 4 config.enable_reloading = true
5 config.eager_load = false
6
7 config.consider_all_requests_local = true
8 config.server_timing = true
8 9
9 # Log error messages when you accidentally call methods on nil. 10 if Rails.root.join("tmp/caching-dev.txt").exist?
11 config.action_controller.perform_caching = true
12 config.action_controller.enable_fragment_cache_logging = true
13 config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
14 else
15 config.action_controller.perform_caching = false
16 end
10 17
11 # Show full error reports and disable caching 18 config.cache_store = :memory_store
12 config.action_controller.consider_all_requests_local = true
13 config.action_controller.perform_caching = false
14 19
15 # Don't care if the mailer can't send
16 config.action_mailer.raise_delivery_errors = false 20 config.action_mailer.raise_delivery_errors = false
21 config.action_mailer.perform_caching = false
22 config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
17 23
18 config.active_support.deprecation = :log 24 config.active_support.deprecation = :log
19 config.public_file_server.enabled = true
20 config.eager_load = false
21 25
22 config.hosts.clear 26 config.active_record.migration_error = :page_load
27 config.active_record.verbose_query_logs = true
28 config.active_record.query_log_tags_enabled = true
29
30 config.active_job.verbose_enqueue_logs = true
31 config.action_dispatch.verbose_redirect_logs = true
32 config.action_view.annotate_rendered_view_with_filenames = true
33 config.action_controller.raise_on_missing_callback_actions = true
23 34
35 config.hosts.clear
24 config.middleware.delete ExceptionNotification::Rack 36 config.middleware.delete ExceptionNotification::Rack
25 37
26 config.assets.debug = false 38 config.assets.debug = false