From 00dc58f8b32af05f144550516b7c04c33410bef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 5 Sep 2020 12:24:26 +0200 Subject: [PATCH] Use Rails 5.1 defaults and overwrite them This way we know what we need to do to fully upgrade to Rails 5.1. --- config/application.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index cf73f4c96..49e67ea01 100644 --- a/config/application.rb +++ b/config/application.rb @@ -8,12 +8,16 @@ Bundler.require(*Rails.groups) module Consul class Application < Rails::Application - config.load_defaults 5.0 + config.load_defaults 5.1 # Keep belongs_to fields optional by default, because that's the way # Rails 4 models worked config.active_record.belongs_to_required_by_default = false + # Overwrite Rails 5.1 defaults and use the options we used in Rails 5.0 + config.action_view.form_with_generates_remote_forms = false + config.assets.unknown_asset_fallback = true + # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)'