From 3f236c7a0e544db94ef822f120d649ac5ee958f7 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 25 Jun 2026 04:34:24 +0200 Subject: Upgrade to Rails 4.2.11.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump rails 3.2.22.5 → 4.2.11.3 - Replace globalize3 with globalize ~> 5.0 (gem renamed at 5.0) - Upgrade routing-filter ~> 0.3 → ~> 0.6 - Upgrade sass-rails, coffee-rails to 4.x - Upgrade awesome_nested_set 2.x → 3.x (Rails 4 required) - Add jquery-rails for UJS support - Pin nokogiri ~> 1.10.10, loofah ~> 2.20.0, rails-html-sanitizer ~> 1.4.4 - Add config/secrets.yml (gitignored), eager_load, serve_static_files - Fix routes: add via: to all match calls, remove legacy catch-all routes - Add admin named route, fix rvm dotfiles - Fix ActiveRecord::FixtureSet rename in test_helper - Set active_support.test_order and active_record.raise_in_transactional_callbacks --- config/environments/development.rb | 3 ++- config/environments/production.rb | 1 + config/environments/test.rb | 25 ++++++++----------------- 3 files changed, 11 insertions(+), 18 deletions(-) (limited to 'config/environments') diff --git a/config/environments/development.rb b/config/environments/development.rb index 94f216f8..3813cab8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -17,5 +17,6 @@ Cccms::Application.configure do config.action_mailer.raise_delivery_errors = false config.active_support.deprecation = :log - config.serve_static_assets = true + config.serve_static_files = true + config.eager_load = false end diff --git a/config/environments/production.rb b/config/environments/production.rb index 2f933de1..6f2c5bdd 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -13,6 +13,7 @@ Cccms::Application.configure do config.log_level = :info config.active_support.deprecation = :notify + config.eager_load = false # Use a different logger for distributed setups # config.logger = SyslogLogger.new diff --git a/config/environments/test.rb b/config/environments/test.rb index 728e1470..3b2413ea 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,32 +1,23 @@ -# Settings specified here will take precedence over those in config/environment.rb - Cccms::Application.configure do - # The test environment is used exclusively to run your application's - # test suite. You never need to work with it otherwise. Remember that - # your test database is "scratch space" for the test suite and is wiped - # and recreated between test runs. Don't rely on the data there! config.cache_classes = true # Log error messages when you accidentally call methods on nil. - config.whiny_nils = true + # config.whiny_nils = true # removed in Rails 4 - # Show full error reports and disable caching config.action_controller.consider_all_requests_local = true config.action_controller.perform_caching = false - # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test - # Use SQL instead of Active Record's schema dumper when creating the test database. - # This is necessary if your schema can't be completely dumped by the schema dumper, - # like if you have constraints or database-specific column types - # config.active_record.schema_format = :sql + config.active_support.deprecation = :log + config.active_support.test_order = :sorted + + config.active_record.raise_in_transactional_callbacks = true - config.active_support.deprecation = :raise + config.eager_load = false + config.serve_static_files = true + config.static_cache_control = "public, max-age=3600" end -- cgit v1.3