aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-01-18 05:02:04 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-01-18 05:02:04 +0300
commitffb0c5185c649f3ef132c9f308384e60a01de9b0 (patch)
treef5d9bd004c7e5450219610f093d26c28dc589bca /activesupport
parentcead2dd1f4e40eb21270b4a6112645a59ce89088 (diff)
downloadrails-ffb0c5185c649f3ef132c9f308384e60a01de9b0.tar.gz
rails-ffb0c5185c649f3ef132c9f308384e60a01de9b0.tar.bz2
rails-ffb0c5185c649f3ef132c9f308384e60a01de9b0.zip
simplify some TaggedLogging methods
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/tagged_logging.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb
index 4e2e1a1ff5..b60bc94db4 100644
--- a/activesupport/lib/active_support/tagged_logging.rb
+++ b/activesupport/lib/active_support/tagged_logging.rb
@@ -22,7 +22,7 @@ module ActiveSupport
tags.concat new_tags
yield
ensure
- new_tags.size.times { tags.pop }
+ tags.pop(new_tags.size)
end
def add(severity, message = nil, progname = nil, &block)
@@ -51,7 +51,7 @@ module ActiveSupport
def tags_text
tags = current_tags
if tags.any?
- tags.collect { |tag| "[#{tag}]" }.join(" ") + " "
+ tags.collect { |tag| "[#{tag}] " }.join
end
end