diff options
author | kennyj <kennyj@gmail.com> | 2012-03-21 02:12:00 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-03-22 13:25:37 +0900 |
commit | 8c262f7591d5ea0f26f8edaf50a96d36a2569812 (patch) | |
tree | 5550857af30c1f1ac17fb1aefd87b845f21d02a8 /actionpack/lib/sprockets/helpers/rails_helper.rb | |
parent | 35bf748cd253610b0ee539b3f1f192779405886b (diff) | |
download | rails-8c262f7591d5ea0f26f8edaf50a96d36a2569812.tar.gz rails-8c262f7591d5ea0f26f8edaf50a96d36a2569812.tar.bz2 rails-8c262f7591d5ea0f26f8edaf50a96d36a2569812.zip |
Fix GH #5411. When precompiling, params method is undefined.
Diffstat (limited to 'actionpack/lib/sprockets/helpers/rails_helper.rb')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index 976ae5a76d..3402343494 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -81,7 +81,7 @@ module Sprockets private def debug_assets? compile_assets? && (Rails.application.config.assets.debug || params[:debug_assets]) - rescue NoMethodError + rescue NameError false end |