Skip to content
Browse files

Merge pull request #2228 from Empact/helper_tags_in_mailers

Simple fix to the NoMethodError noted in #2177.
  • Loading branch information...
2 parents cdc4274 + 1f89898 commit 9327b4de5880f4e8633d834c0f331cc2fca327f1 @tenderlove tenderlove committed Jul 23, 2011
View
2 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -72,6 +72,8 @@ def asset_path(source, default_ext = nil, body = false, protocol = nil)
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
1 actionpack/test/template/sprockets_helper_test.rb
@@ -12,7 +12,6 @@ def setup
super
@controller = BasicController.new
- @controller.stubs(:params).returns({})
@request = Class.new do
def protocol() 'http://' end

0 comments on commit 9327b4d

Please sign in to comment.
Something went wrong with that request. Please try again.