Move common config in application.rb

pull/10950/head
Oliver Günther 2 years ago
parent 1f6d27e206
commit c71742fa01
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 3
      config/application.rb
  2. 3
      config/environments/development.rb
  3. 3
      config/environments/production.rb
  4. 3
      config/environments/test.rb

@ -121,6 +121,9 @@ module OpenProject
# Fall back to default locale
config.i18n.fallbacks = true
# Enable serialization of types [Symbol, Date, Time]
config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::HashWithIndifferentAccess]
# 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.

@ -67,9 +67,6 @@ OpenProject::Application.configure do
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true
# Enable serialization of types [Symbol, Date, Time]
config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::HashWithIndifferentAccess]
# Disable compression and asset digests, but disable debug
config.assets.debug = false
config.assets.digest = false

@ -119,9 +119,6 @@ OpenProject::Application.configure do
config.active_record.dump_schema_after_migration = false
# Enable serialization of types [Symbol, Date, Time]
config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::HashWithIndifferentAccess]
if OpenProject::Configuration.enable_internal_assets_server?
config.public_file_server.enabled = true
config.public_file_server.headers = {

@ -53,9 +53,6 @@ OpenProject::Application.configure do
config.consider_all_requests_local = true
config.action_controller.perform_caching = true
# Enable serialization of types [Symbol, Date, Time]
config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::HashWithIndifferentAccess]
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false

Loading…
Cancel
Save