aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRuben Fonseca <root@cpan.org>2012-02-21 08:22:05 +0000
committerRuben Fonseca <root@cpan.org>2012-02-21 08:22:05 +0000
commit0360a38eb3eeae3c67ee7a4c374512454c830e48 (patch)
treea64ec69a60f249c0407c97b7e1f0e3e9b2c8644d /actionpack
parentc5bf53822f5887c9b235ceef388b1c8a977bcc88 (diff)
downloadrails-0360a38eb3eeae3c67ee7a4c374512454c830e48.tar.gz
rails-0360a38eb3eeae3c67ee7a4c374512454c830e48.tar.bz2
rails-0360a38eb3eeae3c67ee7a4c374512454c830e48.zip
use Hash#delete on styelsheet_link_tag
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb6
1 files changed, 3 insertions, 3 deletions
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')