Skip to content

Commit 4d99175

Browse files
committed
bin/rails app:update partially accepted
1 parent 4079ded commit 4d99175

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

config/environments/development.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Show full error reports.
1919
config.consider_all_requests_local = true
2020

21-
# Enable server timing
21+
# Enable server timing.
2222
config.server_timing = true
2323

2424
# Enable/disable caching. By default caching is disabled.
@@ -28,9 +28,7 @@
2828
config.action_controller.enable_fragment_cache_logging = true
2929

3030
config.cache_store = :memory_store
31-
config.public_file_server.headers = {
32-
"Cache-Control" => "public, max-age=#{2.days.to_i}"
33-
}
31+
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
3432
else
3533
config.action_controller.perform_caching = false
3634

@@ -40,8 +38,12 @@
4038
# Don't care if the mailer can't send.
4139
config.action_mailer.raise_delivery_errors = false
4240

41+
# Disable caching for Action Mailer templates even if Action Controller
42+
# caching is enabled.
4343
config.action_mailer.perform_caching = false
4444

45+
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
46+
4547
# Print deprecation notices to the Rails logger.
4648
config.active_support.deprecation = :log
4749

@@ -76,6 +78,9 @@
7678
# Uncomment if you wish to allow Action Cable access from any origin.
7779
# config.action_cable.disable_request_forgery_protection = true
7880

79-
# Raise error when a before_action's only/except options reference missing actions
81+
# Raise error when a before_action's only/except options reference missing actions.
8082
config.action_controller.raise_on_missing_callback_actions = true
83+
84+
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
85+
# config.generators.apply_rubocop_autocorrect_after_generate!
8186
end

0 commit comments

Comments
 (0)