Permalink
Browse files

use Hash#delete on styelsheet_link_tag

  • Loading branch information...
1 parent c5bf538 commit 0360a38eb3eeae3c67ee7a4c374512454c830e48 @rubenfonseca rubenfonseca committed Feb 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 0360a38

Please sign in to comment.