aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-19 17:39:53 -0800
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-19 17:39:53 -0800
commitd6ac7d72c5c6e5a7fe4eed3566604a4b54c15bde (patch)
tree160c3cdcb5c800a705fd81c777119451fe94e3b3 /railties/lib
parent6de454fb05c66fe9db73516a9a5b5c31373977b2 (diff)
parent2ff2f1ba529ffecb879c723e9a361bacb9e1ea24 (diff)
downloadrails-d6ac7d72c5c6e5a7fe4eed3566604a4b54c15bde.tar.gz
rails-d6ac7d72c5c6e5a7fe4eed3566604a4b54c15bde.tar.bz2
rails-d6ac7d72c5c6e5a7fe4eed3566604a4b54c15bde.zip
Merge pull request #13326 from schneems/schneems/add-asset-flag
Flag `config.assets.raise_runtime_errors` in dev
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt5
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