Skip to content

Commit

Permalink
Merge pull request #77 from johnmcdowall/master
Browse files Browse the repository at this point in the history
Handle when the params hash is unavailable in a mailer
  • Loading branch information
guilleiguaran committed Aug 22, 2013
2 parents cc4387d + cb9bee4 commit 1802687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sprockets/rails/helper.rb
Expand Up @@ -129,6 +129,8 @@ def stylesheet_link_tag(*sources)
# and replaced by source maps in Sprockets 3.x.
def request_debug_assets?
debug_assets || (defined?(controller) && controller && params[:debug_assets])
rescue NoMethodError
return false
end

# Internal method to support multifile debugging. Will
Expand Down

0 comments on commit 1802687

Please sign in to comment.