mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Update framework defaults to 7.2
This commit is contained in:
parent
03aadb9544
commit
fc97a0bdf2
3 changed files with 10 additions and 10 deletions
|
|
@ -11,7 +11,7 @@ Bundler.require(*Rails.groups)
|
||||||
module Dawarich
|
module Dawarich
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails version.
|
# Initialize configuration defaults for originally generated Rails version.
|
||||||
config.load_defaults 7.0
|
config.load_defaults 7.2
|
||||||
|
|
||||||
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
||||||
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
# backends that use the same database as Active Record as a queue, hence they
|
# backends that use the same database as Active Record as a queue, hence they
|
||||||
# don't need this feature.
|
# don't need this feature.
|
||||||
#++
|
#++
|
||||||
# Rails.application.config.active_job.enqueue_after_transaction_commit = :default
|
Rails.application.config.active_job.enqueue_after_transaction_commit = :default
|
||||||
|
|
||||||
###
|
###
|
||||||
# Adds image/webp to the list of content types Active Storage considers as an image
|
# Adds image/webp to the list of content types Active Storage considers as an image
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
# This is possible due to broad browser support for WebP, but older browsers and email clients may still not support
|
# 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.
|
# 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]
|
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
|
# Enable validation of migration timestamps. When set, an ActiveRecord::InvalidMigrationTimestampError
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
# Applications with existing timestamped migrations that do not adhere to the
|
# Applications with existing timestamped migrations that do not adhere to the
|
||||||
# expected format can disable validation by setting this config to `false`.
|
# expected format can disable validation by setting this config to `false`.
|
||||||
#++
|
#++
|
||||||
# Rails.application.config.active_record.validate_migration_timestamps = true
|
Rails.application.config.active_record.validate_migration_timestamps = true
|
||||||
|
|
||||||
###
|
###
|
||||||
# Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
|
# Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
|
||||||
|
|
@ -61,10 +61,10 @@
|
||||||
#
|
#
|
||||||
# This query used to return a `String`.
|
# This query used to return a `String`.
|
||||||
#++
|
#++
|
||||||
# Rails.application.config.active_record.postgresql_adapter_decode_dates = true
|
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
|
# 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`.
|
# deploying to a memory constrained environment you may want to set this to `false`.
|
||||||
#++
|
#++
|
||||||
# Rails.application.config.yjit = true
|
Rails.application.config.yjit = true
|
||||||
|
|
|
||||||
|
|
@ -123,16 +123,16 @@ paths:
|
||||||
in: query
|
in: query
|
||||||
format: date-time
|
format: date-time
|
||||||
required: true
|
required: true
|
||||||
description: Start date and time for the range (ISO 8601 format)
|
description: Start date in YYYY-MM-DD format
|
||||||
example: '2023-01-01T00:00:00Z'
|
example: '2023-01-01'
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: end_at
|
- name: end_at
|
||||||
in: query
|
in: query
|
||||||
format: date-time
|
format: date-time
|
||||||
required: true
|
required: true
|
||||||
description: End date and time for the range (ISO 8601 format)
|
description: End date in YYYY-MM-DD format
|
||||||
example: '2023-12-31T23:59:59Z'
|
example: '2023-12-31'
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue