Skip to content

Commit 7f556d3

Browse files
committed
bin/rails app:update partially accepted
1 parent 7ab9ca4 commit 7f556d3

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

config/environments/development.rb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# Show full error reports.
3232
config.consider_all_requests_local = true
3333

34-
# Enable server timing
34+
# Enable server timing.
3535
config.server_timing = true
3636

3737
# Enable/disable caching. By default caching is disabled.
@@ -41,9 +41,7 @@
4141
config.action_controller.enable_fragment_cache_logging = true
4242

4343
config.cache_store = :memory_store
44-
config.public_file_server.headers = {
45-
"Cache-Control" => "public, max-age=#{2.days.to_i}"
46-
}
44+
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
4745
else
4846
config.action_controller.perform_caching = false
4947

@@ -61,8 +59,12 @@
6159
# Don't care if the mailer can't send.
6260
config.action_mailer.raise_delivery_errors = false
6361

62+
# Disable caching for Action Mailer templates even if Action Controller
63+
# caching is enabled.
6464
config.action_mailer.perform_caching = false
6565

66+
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
67+
6668
# Print deprecation notices to the Rails logger.
6769
config.active_support.deprecation = :log
6870

@@ -100,11 +102,14 @@
100102
end
101103

102104
# Annotate rendered view with file names.
103-
# config.action_view.annotate_rendered_view_with_filenames = true
105+
config.action_view.annotate_rendered_view_with_filenames = true
104106

105107
# Uncomment if you wish to allow Action Cable access from any origin.
106108
# config.action_cable.disable_request_forgery_protection = true
107109

108-
# Raise error when a before_action's only/except options reference missing actions
110+
# Raise error when a before_action's only/except options reference missing actions.
109111
config.action_controller.raise_on_missing_callback_actions = true
112+
113+
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
114+
# config.generators.apply_rubocop_autocorrect_after_generate!
110115
end

0 commit comments

Comments
 (0)