diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-18 14:59:27 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-18 15:35:41 -0500 |
commit | 7223f10acda3d5683e6de817bc7131ca109f3f28 (patch) | |
tree | 37181978cbf1a1ba4dbb3686a9b1dea82fbc2aa2 /actionpack/lib/sprockets | |
parent | cc90adfd2a171c5fc9f90f6a6506c5ac937efab3 (diff) | |
download | rails-7223f10acda3d5683e6de817bc7131ca109f3f28.tar.gz rails-7223f10acda3d5683e6de817bc7131ca109f3f28.tar.bz2 rails-7223f10acda3d5683e6de817bc7131ca109f3f28.zip |
Debug assets by default in development and test environments
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index ec3d36d5ad..a65c5992ca 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -70,8 +70,8 @@ module Sprockets private def debug_assets? - params[:debug_assets] == '1' || - params[:debug_assets] == 'true' + Rails.env.development? || Rails.env.test? || + params[:debug_assets] == '1' || params[:debug_assets] == 'true' rescue NoMethodError false end |