mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
a1ca3b22f7
Warning was: > DEPRECATION WARNING: > `config.active_job.enqueue_after_transaction_commit` is deprecated and > will be removed in Rails 8.1. This configuration can still be set on > individual jobs using `self.enqueue_after_transaction_commit=`, but > due the nature of this behavior, it is not recommended to be set > globally. Actually, using `:never` sets it to `false`, and `false` is the default value. So removing this setting keeps the same behavior and avoids the deprecation warning.
76 lines
3.3 KiB
Ruby
76 lines
3.3 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
#-- copyright
|
|
# OpenProject is an open source project management software.
|
|
# Copyright (C) the OpenProject GmbH
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License version 3.
|
|
#
|
|
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
|
# Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
# Copyright (C) 2010-2013 the ChiliProject Team
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
# See COPYRIGHT and LICENSE files for more details.
|
|
#++
|
|
|
|
# Be sure to restart your server when you modify this file.
|
|
#
|
|
# This file eases your Rails 7.2 framework defaults 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 `7.2`.
|
|
#
|
|
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
|
# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
|
|
|
|
###
|
|
# Adds image/webp to the list of content types Active Storage considers as an image
|
|
# Prevents automatic conversion to a fallback PNG, and assumes clients support WebP, as they support gif, jpeg, and png.
|
|
# This is possible due to broad browser support for WebP, but older browsers and email clients may still not support
|
|
# WebP. Requires imagemagick/libvips built with WebP support.
|
|
#++
|
|
Rails.application.config.active_storage.web_image_content_types = %w[image/png image/jpeg image/gif image/webp]
|
|
|
|
###
|
|
# Enable validation of migration timestamps. When set, an ActiveRecord::InvalidMigrationTimestampError
|
|
# will be raised if the timestamp prefix for a migration is more than a day ahead of the timestamp
|
|
# associated with the current time. This is done to prevent forward-dating of migration files, which can
|
|
# impact migration generation and other migration commands.
|
|
#
|
|
# Applications with existing timestamped migrations that do not adhere to the
|
|
# expected format can disable validation by setting this config to `false`.
|
|
#++
|
|
Rails.application.config.active_record.validate_migration_timestamps = true
|
|
|
|
###
|
|
# Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
|
|
#
|
|
# Example:
|
|
# ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.select_value("select '2024-01-01'::date") #=> Date
|
|
#
|
|
# This query used to return a `String`.
|
|
#++
|
|
Rails.application.config.active_record.postgresql_adapter_decode_dates = true
|
|
|
|
###
|
|
# Enables YJIT as of Ruby 3.3, to bring sizeable performance improvements. If you are
|
|
# deploying to a memory constrained environment you may want to set this to `false`.
|
|
#++
|
|
Rails.application.config.yjit = ENV["OPENPROJECT_DISABLE__YJIT"] != "true"
|