|
18 | 18 | # Show full error reports. |
19 | 19 | config.consider_all_requests_local = true |
20 | 20 |
|
21 | | - # Enable server timing |
| 21 | + # Enable server timing. |
22 | 22 | config.server_timing = true |
23 | 23 |
|
24 | 24 | # Enable/disable caching. By default caching is disabled. |
|
28 | 28 | config.action_controller.enable_fragment_cache_logging = true |
29 | 29 |
|
30 | 30 | 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}" } |
34 | 32 | else |
35 | 33 | config.action_controller.perform_caching = false |
36 | 34 |
|
|
40 | 38 | # Don't care if the mailer can't send. |
41 | 39 | config.action_mailer.raise_delivery_errors = false |
42 | 40 |
|
| 41 | + # Disable caching for Action Mailer templates even if Action Controller |
| 42 | + # caching is enabled. |
43 | 43 | config.action_mailer.perform_caching = false |
44 | 44 |
|
| 45 | + config.action_mailer.default_url_options = { host: "localhost", port: 3000 } |
| 46 | + |
45 | 47 | # Print deprecation notices to the Rails logger. |
46 | 48 | config.active_support.deprecation = :log |
47 | 49 |
|
|
76 | 78 | # Uncomment if you wish to allow Action Cable access from any origin. |
77 | 79 | # config.action_cable.disable_request_forgery_protection = true |
78 | 80 |
|
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. |
80 | 82 | 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! |
81 | 86 | end |
0 commit comments