mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #4582 from kennyj/fix_4580
Fix GH #4580. Rails 3.2: uninitialized constant ActiveSupport::TaggedLogging::ERROR
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user