Skip to content

Commit 9c2ed33

Browse files
ulfertsEinLama
authored andcommitted
remove configs commented out or set to default
1 parent 96c2fea commit 9c2ed33

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

config/application.rb

-33
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ class Application < Rails::Application
154154
# :all can be used as a placeholder for all plugins not explicitly named.
155155
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
156156

157-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
158-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
159-
# config.time_zone = 'Central Time (US & Canada)'
160-
161157
# Add locales from crowdin translations to i18n
162158
config.i18n.load_path += Dir[Rails.root.join("config/locales/crowdin/*.{rb,yml}").to_s]
163159
config.i18n.default_locale = :en
@@ -183,40 +179,11 @@ class Application < Rails::Application
183179

184180
ActiveModel::Translation.raise_on_missing_translations = Rails.env.local?
185181

186-
# Configure the default encoding used in templates for Ruby 1.9.
187-
config.encoding = "utf-8"
188-
189-
# Enable escaping HTML in JSON.
190-
config.active_support.escape_html_entities_in_json = true
191-
192-
# Make Active Record use stable #cache_key alongside new #cache_version method.
193-
# This is needed for recyclable cache keys.
194-
# We will want check https://blog.heroku.com/cache-invalidation-rails-5-2-dalli-store
195-
# and test if we can enable this in the long run
196-
# Rails.application.config.active_record.cache_versioning = true
197-
198-
# Use AES-256-GCM authenticated encryption for encrypted cookies.
199-
# Also, embed cookie expiry in signed or encrypted cookies for increased security.
200-
#
201-
# This option is not backwards compatible with earlier Rails versions.
202-
# It's best enabled when your entire app is migrated and stable on 5.2.
203-
#
204-
# Existing cookies will be converted on read then written with the new scheme.
205-
Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
206-
207-
# Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
208-
# instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
209-
Rails.application.config.active_support.use_authenticated_message_encryption = true
210-
211182
# Use SHA-256 instead of MD5 to generate non-sensitive digests, such as the ETag header.
212183
# This will be the default with Rails 7.1. So when config.load_configs is set to 7.1 or above,
213184
# this configuration can be removed.
214185
Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256
215186

216-
# This option is not backwards compatible with earlier Rails versions.
217-
# It's best enabled when your entire app is migrated and stable on 6.0.
218-
Rails.application.config.action_dispatch.use_cookies_with_metadata = true
219-
220187
# Use SQL instead of Active Record's schema dumper when creating the database.
221188
# This is necessary if your schema can't be completely dumped by the schema dumper,
222189
# like if you have constraints or database-specific column types

0 commit comments

Comments
 (0)