aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets/helpers
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-03-22 01:40:54 -0700
committerJosé Valim <jose.valim@gmail.com>2012-03-22 01:40:54 -0700
commitb714140f4df50d102e70b0151bbb3a09e470d61a (patch)
tree5550857af30c1f1ac17fb1aefd87b845f21d02a8 /actionpack/lib/sprockets/helpers
parent89f88669bfbdc7987032c2716c87faefb8fe4a8e (diff)
parent8c262f7591d5ea0f26f8edaf50a96d36a2569812 (diff)
downloadrails-b714140f4df50d102e70b0151bbb3a09e470d61a.tar.gz
rails-b714140f4df50d102e70b0151bbb3a09e470d61a.tar.bz2
rails-b714140f4df50d102e70b0151bbb3a09e470d61a.zip
Merge pull request #5525 from kennyj/fix_5411
Fix GH #5411. When precompiling, params method is undefined.
Diffstat (limited to 'actionpack/lib/sprockets/helpers')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb2
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