|
31 | 31 | # Show full error reports. |
32 | 32 | config.consider_all_requests_local = true |
33 | 33 |
|
34 | | - # Enable server timing |
| 34 | + # Enable server timing. |
35 | 35 | config.server_timing = true |
36 | 36 |
|
37 | 37 | # Enable/disable caching. By default caching is disabled. |
|
41 | 41 | config.action_controller.enable_fragment_cache_logging = true |
42 | 42 |
|
43 | 43 | 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}" } |
47 | 45 | else |
48 | 46 | config.action_controller.perform_caching = false |
49 | 47 |
|
|
61 | 59 | # Don't care if the mailer can't send. |
62 | 60 | config.action_mailer.raise_delivery_errors = false |
63 | 61 |
|
| 62 | + # Disable caching for Action Mailer templates even if Action Controller |
| 63 | + # caching is enabled. |
64 | 64 | config.action_mailer.perform_caching = false |
65 | 65 |
|
| 66 | + config.action_mailer.default_url_options = { host: "localhost", port: 3000 } |
| 67 | + |
66 | 68 | # Print deprecation notices to the Rails logger. |
67 | 69 | config.active_support.deprecation = :log |
68 | 70 |
|
|
100 | 102 | end |
101 | 103 |
|
102 | 104 | # 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 |
104 | 106 |
|
105 | 107 | # Uncomment if you wish to allow Action Cable access from any origin. |
106 | 108 | # config.action_cable.disable_request_forgery_protection = true |
107 | 109 |
|
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. |
109 | 111 | 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! |
110 | 115 | end |
0 commit comments