0
|
1 Rails.application.configure do
|
|
2 # Settings specified here will take precedence over those in config/application.rb.
|
|
3
|
|
4 # In the development environment your application's code is reloaded on
|
|
5 # every request. This slows down response time but is perfect for development
|
|
6 # since you don't have to restart the web server when you make code changes.
|
|
7 config.cache_classes = false
|
|
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
|
|
15 # Enable/disable caching. By default caching is disabled.
|
185
|
16 # Run rails dev:cache to toggle caching.
|
|
17 if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
72
|
18 config.action_controller.perform_caching = true
|
185
|
19 config.action_controller.enable_fragment_cache_logging = true
|
72
|
20
|
185
|
21 config.cache_store = :memory_store
|
72
|
22 config.public_file_server.headers = {
|
185
|
23 'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
72
|
24 }
|
|
25 else
|
|
26 config.action_controller.perform_caching = false
|
|
27
|
185
|
28 config.cache_store = :null_store
|
72
|
29 end
|
0
|
30
|
|
31 # Print deprecation notices to the Rails logger.
|
|
32 config.active_support.deprecation = :log
|
|
33
|
72
|
34
|
185
|
35 # Raises error for missing translations.
|
0
|
36 # config.action_view.raise_on_missing_translations = true
|
72
|
37
|
|
38 # Use an evented file watcher to asynchronously detect changes in source code,
|
|
39 # routes, locales, etc. This feature depends on the listen gem.
|
|
40 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
0
|
41 end
|