aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-08-22 11:50:27 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-08-22 11:50:27 -0700
commit0b6da0c65497df4ee9d2f9313ccb9909bdc842e9 (patch)
tree8851f6064b21f98f696a32b1caa47d1d8902029b /railties/lib
parent999e7ea47d04c4fe01a195fdb8abd39b6bd38fa8 (diff)
parent18b2223b3290c4b3daa310edfc06b4d51161c312 (diff)
downloadrails-0b6da0c65497df4ee9d2f9313ccb9909bdc842e9.tar.gz
rails-0b6da0c65497df4ee9d2f9313ccb9909bdc842e9.tar.bz2
rails-0b6da0c65497df4ee9d2f9313ccb9909bdc842e9.zip
Merge pull request #2411 from ai/debug_assets_by_config
Debug assets by config
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/application/configuration.rb1
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt3
2 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb
index cd850b6a75..f1add68890 100644
--- a/railties/lib/rails/application/configuration.rb
+++ b/railties/lib/rails/application/configuration.rb
@@ -38,6 +38,7 @@ module Rails
@assets.precompile = [ /\w+\.(?!js|css).+/, /application.(css|js)$/ ]
@assets.prefix = "/assets"
@assets.version = ''
+ @assets.debug = false
@assets.cache_store = [ :file_store, "#{root}/tmp/cache/assets/" ]
@assets.js_compressor = nil
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 3e0c29a587..47078e3af9 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,4 +29,7 @@
# Do not compress assets
config.assets.compress = false
+
+ # Expands the lines which load the assets
+ config.assets.debug = true
end