Mercurial > zeropaste
annotate config/environments/development.rb @ 378:e84276bf344a
Immediate return instead of unless ... end.
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 06 Jun 2015 22:36:32 +0900 |
parents | 10f1eb74e6d7 |
children | 68eb23b52864 |
rev | line source |
---|---|
0 | 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 | 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 | |
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 | 13 config.consider_all_requests_local = true |
14 config.action_controller.perform_caching = false | |
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 | 17 # config.action_mailer.raise_delivery_errors = false |
0 | 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 | 20 config.active_support.deprecation = :log |
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 | 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 | 28 config.assets.debug = true |
29 end |