Skip to content
Browse files

Merge pull request #5107 from rubenfonseca/stylesheet_link_tag_refactor

use Hash#delete on styelsheet_link_tag
  • Loading branch information...
2 parents c5bf538 + 0360a38 commit e7c6cd308e9dfa6ebd4b231548d82bc05760e3b7 @jonleighton jonleighton committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/sprockets/helpers/rails_helper.rb
View
6 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -36,9 +36,9 @@ def javascript_include_tag(*sources)
def stylesheet_link_tag(*sources)
options = sources.extract_options!
- debug = options.key?(:debug) ? options.delete(:debug) : debug_assets?
- body = options.key?(:body) ? options.delete(:body) : false
- digest = options.key?(:digest) ? options.delete(:digest) : digest_assets?
+ debug = options.delete(:debug) { debug_assets? }
+ body = options.delete(:body) { false }
+ digest = options.delete(:digest) { digest_assets? }
sources.collect do |source|
if debug && asset = asset_paths.asset_for(source, 'css')

0 comments on commit e7c6cd3

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