Merge pull request #4582 from kennyj/fix_4580

Fix  GH #4580. Rails 3.2: uninitialized constant ActiveSupport::TaggedLogging::ERROR
This commit is contained in:
José Valim
2012-01-21 12:03:32 -08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ module ActiveSupport
new_tags.size.times { tags.pop }
end
def silence(temporary_level = ERROR, &block)
def silence(temporary_level = Logger::ERROR, &block)
@logger.silence(temporary_level, &block)
end
deprecate :silence

View File

@@ -64,4 +64,8 @@ class TaggedLoggingTest < ActiveSupport::TestCase
assert_equal "[BCX] [Jason] Funky time\n[BCX] Junky time!\n", @output.string
end
test "silence" do
assert_nothing_raised { @logger.silence {} }
end
end