214
|
1 require "active_support/core_ext/integer/time"
|
|
2
|
0
|
3 Rails.application.configure do
|
|
4 # Settings specified here will take precedence over those in config/application.rb.
|
|
5
|
255
|
6 # Make code changes take effect immediately without server restart.
|
254
|
7 config.enable_reloading = true
|
0
|
8
|
|
9 # Do not eager load code on boot.
|
|
10 config.eager_load = false
|
|
11
|
72
|
12 # Show full error reports.
|
|
13 config.consider_all_requests_local = true
|
|
14
|
254
|
15 # Enable server timing.
|
223
|
16 config.server_timing = true
|
|
17
|
255
|
18 # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
|
|
19 # Run rails dev:cache to toggle Action Controller caching.
|
254
|
20 if Rails.root.join("tmp/caching-dev.txt").exist?
|
|
21 config.action_controller.perform_caching = true
|
|
22 config.action_controller.enable_fragment_cache_logging = true
|
255
|
23 config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
|
254
|
24 else
|
|
25 config.action_controller.perform_caching = false
|
255
|
26 end
|
72
|
27
|
255
|
28 # Change to :null_store to avoid any caching.
|
|
29 config.cache_store = :memory_store
|
0
|
30
|
|
31 # Print deprecation notices to the Rails logger.
|
|
32 config.active_support.deprecation = :log
|
|
33
|
185
|
34 # Raises error for missing translations.
|
214
|
35 # config.i18n.raise_on_missing_translations = true
|
|
36
|
|
37 # Annotate rendered view with file names.
|
254
|
38 config.action_view.annotate_rendered_view_with_filenames = true
|
72
|
39
|
254
|
40 # Raise error when a before_action's only/except options reference missing actions.
|
|
41 config.action_controller.raise_on_missing_callback_actions = true
|
0
|
42 end
|