diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-02-21 00:38:21 -0800 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-02-21 00:38:21 -0800 |
commit | e7c6cd308e9dfa6ebd4b231548d82bc05760e3b7 (patch) | |
tree | a64ec69a60f249c0407c97b7e1f0e3e9b2c8644d /actionpack/lib/sprockets/helpers/rails_helper.rb | |
parent | c5bf53822f5887c9b235ceef388b1c8a977bcc88 (diff) | |
parent | 0360a38eb3eeae3c67ee7a4c374512454c830e48 (diff) | |
download | rails-e7c6cd308e9dfa6ebd4b231548d82bc05760e3b7.tar.gz rails-e7c6cd308e9dfa6ebd4b231548d82bc05760e3b7.tar.bz2 rails-e7c6cd308e9dfa6ebd4b231548d82bc05760e3b7.zip |
Merge pull request #5107 from rubenfonseca/stylesheet_link_tag_refactor
use Hash#delete on styelsheet_link_tag
Diffstat (limited to 'actionpack/lib/sprockets/helpers/rails_helper.rb')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 6 |
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') |