Merge pull request #2228 from Empact/helper_tags_in_mailers

Simple fix to the NoMethodError noted in #2177.
This commit is contained in:
Aaron Patterson
2011-07-23 20:40:12 -07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -72,6 +72,8 @@ module Sprockets
def debug_assets?
params[:debug_assets] == '1' ||
params[:debug_assets] == 'true'
rescue NoMethodError
false
end
# Override to specify an alternative prefix for asset path generation.

View File

@@ -12,7 +12,6 @@ class SprocketsHelperTest < ActionView::TestCase
super
@controller = BasicController.new
@controller.stubs(:params).returns({})
@request = Class.new do
def protocol() 'http://' end