Get rid of deprecation warnings when starting the application

This commit is contained in:
Klaus Zanders
2026-03-20 11:44:29 +01:00
parent 039537ff58
commit b9a125c3be
4 changed files with 3 additions and 11 deletions
-7
View File
@@ -167,13 +167,6 @@ module OpenProject
# Include tstzrange columns in the list of time zone aware types
ActiveRecord::Base.time_zone_aware_types += [:tstzrange]
# Specifies whether `to_time` methods preserve the UTC offset of their receivers
# or preserves the timezone. Rails 8.0+ default is `:zone`.
# If set to `:zone`, `to_time` methods will use the timezone of their receivers.
# If set to `:offset`, `to_time` methods will use the UTC offset.
# If `false`, `to_time` methods will convert to the local system UTC offset instead.
config.active_support.to_time_preserves_timezone = :zone
# Activate being able to specify the format in which full_message works.
# Doing this, it is e.g. possible to avoid having the format of '%{attribute} %{message}' which
# will always prepend the attribute name to the error message.
-1
View File
@@ -45,7 +45,6 @@ module CarrierWave
end
CarrierWave.configure do |config|
config.fog_provider = "fog/aws"
config.fog_credentials = credentials
config.fog_directory = directory
config.fog_public = public
@@ -116,7 +116,8 @@ Rails.application.config.active_record.partial_inserts = false
# https://guides.rubyonrails.org/configuring.html#config-action-controller-raise-on-open-redirects
# Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`.
# Previous versions had false. Rails 7.0+ default is true.
Rails.application.config.action_controller.raise_on_open_redirects = true
# `raise_on_open_redirects` is deprecated in Rails 8.2; use `action_on_open_redirect` instead.
Rails.application.config.action_controller.action_on_open_redirect = :raise
# https://guides.rubyonrails.org/configuring.html#config-active-storage-variant-processor
# Change the variant processor for Active Storage.
@@ -29,8 +29,7 @@
#++
# OpenProject should not be affected by this change. At least the vast majority of JSON responses
# are rendered in the APIv3 which do not use the JSON renderer of ActionController.
# But keeping it set to true does not cost anything.
Rails.configuration.action_controller.escape_json_responses = true
Rails.configuration.action_controller.escape_json_responses = false
###
# Skips escaping LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) in JSON.