annotate config/environments/development.rb @ 425:9369ad2f2ce8

Simplify logic
author nanaya <me@myconan.net>
date Mon, 26 Oct 2015 14:09:13 +0900
parents 10f1eb74e6d7
children 68eb23b52864
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 Zeropaste::Application.configure do
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
2 # Settings specified here will take precedence over those in config/application.rb.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 # In the development environment your application's code is reloaded on
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 # every request. This slows down response time but is perfect for development
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 # since you don't have to restart the web server when you make code changes.
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7 config.cache_classes = false
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
9 # Do not eager load code on boot.
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
10 config.eager_load = false
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
11
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
12 # Show full error reports and disable caching.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13 config.consider_all_requests_local = true
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
14 config.action_controller.perform_caching = false
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
15
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
16 # Don't care if the mailer can't send.
205
10f1eb74e6d7 We have no activemailer.
Edho Arief <edho@myconan.net>
parents: 202
diff changeset
17 # config.action_mailer.raise_delivery_errors = false
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
18
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
19 # Print deprecation notices to the Rails logger.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
20 config.active_support.deprecation = :log
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
21
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
22 # Raise an error on page load if there are pending migrations
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
23 config.active_record.migration_error = :page_load
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
24
202
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
25 # Debug mode disables concatenation and preprocessing of assets.
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
26 # This option may cause significant delays in view rendering with a large
d4cf49db9c49 ...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents: 201
diff changeset
27 # number of complex assets.
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
28 config.assets.debug = true
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
29 end