Skip to content

Commit 1802687

Browse files
committed
Merge pull request #77 from johnmcdowall/master
Handle when the params hash is unavailable in a mailer
2 parents cc4387d + cb9bee4 commit 1802687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/sprockets/rails/helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def stylesheet_link_tag(*sources)
129129
# and replaced by source maps in Sprockets 3.x.
130130
def request_debug_assets?
131131
debug_assets || (defined?(controller) && controller && params[:debug_assets])
132+
rescue NoMethodError
133+
return false
132134
end
133135

134136
# Internal method to support multifile debugging. Will

0 commit comments

Comments
 (0)