OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use Rails 5.0 framework defaults
Christophe Bliard22d084e53a27
diff --git a/config/application.rb b/config/application.rbindex b9ee34140e5..bc711708ab1 100644--- a/config/application.rb+++ b/config/application.rb@@ -59,10 +59,10 @@ module OpenProject# https://guides.rubyonrails.org/configuring.html#versioned-default-values# for the default values associated with a particular version.#- # Currently, defaults from Rails 4.2 are applied. Goal is to reach 7.0- # defaults. Overridden defaults should be stored in specific initializers- # files. See https://community.openproject.org/wp/45463 for details.- # config.load_defaults 5.0+ # Goal is to reach 7.0 defaults. Overridden defaults should be stored in+ # specific initializers files. See+ # https://community.openproject.org/wp/45463 for details.+ config.load_defaults 5.0# Use new connection handling API. For most applications this won't have any# effect. For applications using multiple databases, this new API providesdiff --git a/config/initializers/new_framework_defaults_5_0.rb b/config/initializers/new_framework_defaults_5_0.rbdeleted file mode 100644index aaae8c6802b..00000000000--- a/config/initializers/new_framework_defaults_5_0.rb+++ /dev/null@@ -1,37 +0,0 @@-# Be sure to restart your server when you modify this file.-#-# This file contains migration options to ease your Rails 5.0 upgrade.-#-# Uncomment each configuration one by one to switch to the new default.-# Once your application is ready to run with all new defaults, you can remove-# this file and set the `config.load_defaults` to `5.0`.-#-# Read the Guide for Upgrading Ruby on Rails for more info on each option.-# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html--# https://guides.rubyonrails.org/configuring.html#config-action-controller-per-form-csrf-tokens-# Enable per-form CSRF tokens. Previous versions had false. Rails 5.0+ default-# is true.-Rails.application.config.action_controller.per_form_csrf_tokens = true--# https://guides.rubyonrails.org/configuring.html#config-action-controller-forgery-protection-origin-check-# Enable origin-checking CSRF mitigation. Previous versions had false. Rails-# 5.0+ default is true.-Rails.application.config.action_controller.forgery_protection_origin_check = true--# https://guides.rubyonrails.org/configuring.html#activesupport-to-time-preserves-timezone-# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.-# Previous versions had false. Rails 5.0+ default is true.-ActiveSupport.to_time_preserves_timezone = true--# https://guides.rubyonrails.org/configuring.html#config-active-record-belongs-to-required-by-default-# Require `belongs_to` associations by default. Previous versions had false.-# Rails 5.0+ default is true.-Rails.application.config.active_record.belongs_to_required_by_default = true--# https://guides.rubyonrails.org/configuring.html#config-ssl-options-# Configure SSL options to enable HSTS with subdomains. Previous versions had-# false. Rails 5.0+ default is `subdomains: true` to apply HSTS to subdomains.-# Please note that OpenProject sets it through secure_headers gem: look in-# config/initializers/secure_headers.rb:9-# Rails.application.config.ssl_options = { hsts: { subdomains: true } }