From 0360a38eb3eeae3c67ee7a4c374512454c830e48 Mon Sep 17 00:00:00 2001 From: Ruben Fonseca Date: Tue, 21 Feb 2012 08:22:05 +0000 Subject: use Hash#delete on styelsheet_link_tag --- actionpack/lib/sprockets/helpers/rails_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index 5a46a01027..839ec7635f 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -36,9 +36,9 @@ module Sprockets 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') -- cgit v1.2.3