Skip to content

Commit cc805e9

Browse files
committed
Rails 7.2: Enable all defaults
1 parent 68a022d commit cc805e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config/initializers/new_framework_defaults_7_2.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
# backends that use the same database as Active Record as a queue, hence they
3333
# don't need this feature.
3434
#++
35-
# Rails.application.config.active_job.enqueue_after_transaction_commit = :default
35+
Rails.application.config.active_job.enqueue_after_transaction_commit = :default
3636

3737
###
3838
# Adds image/webp to the list of content types Active Storage considers as an image
3939
# Prevents automatic conversion to a fallback PNG, and assumes clients support WebP, as they support gif, jpeg, and png.
4040
# This is possible due to broad browser support for WebP, but older browsers and email clients may still not support
4141
# WebP. Requires imagemagick/libvips built with WebP support.
4242
#++
43-
# Rails.application.config.active_storage.web_image_content_types = %w[image/png image/jpeg image/gif image/webp]
43+
Rails.application.config.active_storage.web_image_content_types = %w[image/png image/jpeg image/gif image/webp]
4444

4545
###
4646
# Enable validation of migration timestamps. When set, an ActiveRecord::InvalidMigrationTimestampError
@@ -51,7 +51,7 @@
5151
# Applications with existing timestamped migrations that do not adhere to the
5252
# expected format can disable validation by setting this config to `false`.
5353
#++
54-
# Rails.application.config.active_record.validate_migration_timestamps = true
54+
Rails.application.config.active_record.validate_migration_timestamps = true
5555

5656
###
5757
# Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
@@ -61,10 +61,10 @@
6161
#
6262
# This query used to return a `String`.
6363
#++
64-
# Rails.application.config.active_record.postgresql_adapter_decode_dates = true
64+
Rails.application.config.active_record.postgresql_adapter_decode_dates = true
6565

6666
###
6767
# Enables YJIT as of Ruby 3.3, to bring sizeable performance improvements. If you are
6868
# deploying to a memory constrained environment you may want to set this to `false`.
6969
#++
70-
# Rails.application.config.yjit = true
70+
Rails.application.config.yjit = true

0 commit comments

Comments
 (0)