diff options
author | schneems <richard.schneeman@gmail.com> | 2013-11-11 15:56:09 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2013-12-19 20:37:18 -0500 |
commit | 2ff2f1ba529ffecb879c723e9a361bacb9e1ea24 (patch) | |
tree | f80c5b2d71853c9f85371a8bded4bc90758f6d23 /railties | |
parent | badcd7bb00a251c23fa59666c0970f8cff0f6cb2 (diff) | |
download | rails-2ff2f1ba529ffecb879c723e9a361bacb9e1ea24.tar.gz rails-2ff2f1ba529ffecb879c723e9a361bacb9e1ea24.tar.bz2 rails-2ff2f1ba529ffecb879c723e9a361bacb9e1ea24.zip |
Flag `config.assets.raise_runtime_errors` in dev
By default `config.assets.raise_runtime_errors` should be set to `true` in development for new apps.
Source: https://github.com/rails/sprockets-rails/pull/100
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt index b724d468a2..cce4743a33 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt @@ -29,5 +29,10 @@ Rails.application.configure do # This option may cause significant delays in view rendering with a large # number of complex assets. config.assets.debug = true + + # Adds additional error checking when serving assets at runtime. + # Checks for improperly declared sprockets dependencies. + # Raises helpful error messages. + config.assets.raise_runtime_errors = true <%- end -%> end |