Permalink
Browse files

simplify some TaggedLogging methods

  • Loading branch information...
1 parent cead2dd commit ffb0c5185c649f3ef132c9f308384e60a01de9b0 @lest lest committed Jan 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/tagged_logging.rb
@@ -22,7 +22,7 @@ def tagged(*new_tags)
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 @@ def method_missing(method, *args)
def tags_text
tags = current_tags
if tags.any?
- tags.collect { |tag| "[#{tag}]" }.join(" ") + " "
+ tags.collect { |tag| "[#{tag}] " }.join
end
end

0 comments on commit ffb0c51

Please sign in to comment.