annotate config/environments/development.rb @ 104:f2398d2a6859

Prefer .attrs to .to_hash
author nanaya <me@myconan.net>
date Mon, 26 Sep 2016 02:40:08 +0900
parents 257910c60eb3
children f67f3ad50270
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 Rails.application.configure do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
2 # Settings specified here will take precedence over those in config/application.rb.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
3
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 # In the development environment your application's code is reloaded on
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 # every request. This slows down response time but is perfect for development
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
6 # since you don't have to restart the web server when you make code changes.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 config.cache_classes = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
8
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
9 # Do not eager load code on boot.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
10 config.eager_load = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
11
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
12 # Show full error reports.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
13 config.consider_all_requests_local = true
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
14
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
15 # Enable/disable caching. By default caching is disabled.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
16 if Rails.root.join("tmp/caching-dev.txt").exist?
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
17 config.action_controller.perform_caching = true
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
18
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
19 # config.cache_store = :memory_store
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
20 config.public_file_server.headers = {
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
21 "Cache-Control" => "public, max-age=172800"
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
22 }
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
23 else
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
24 config.action_controller.perform_caching = false
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
25
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
26 # config.cache_store = :null_store
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
27 end
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
28
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
29 # Don't care if the mailer can't send.
3
7362277d416d Remove action mailer leftover.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
30 # config.action_mailer.raise_delivery_errors = false
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
31
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
32 # config.action_mailer.perform_caching = false
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
33
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
34 # Print deprecation notices to the Rails logger.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
35 config.active_support.deprecation = :log
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
36
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
37 # Raise an error on page load if there are pending migrations.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
38 # config.active_record.migration_error = :page_load
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
39
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
40 # Debug mode disables concatenation and preprocessing of assets.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
41 # This option may cause significant delays in view rendering with a large
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
42 # number of complex assets.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
43 # config.assets.debug = true
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
44
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
45 # Raises error for missing translations
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
46 # config.action_view.raise_on_missing_translations = true
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
47
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
48 # Use an evented file watcher to asynchronously detect changes in source code,
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
49 # routes, locales, etc. This feature depends on the listen gem.
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 20
diff changeset
50 # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
51 end