Skip to content

Commit

Permalink
Merge pull request #4582 from kennyj/fix_4580
Browse files Browse the repository at this point in the history
Fix  GH #4580. Rails 3.2: uninitialized constant ActiveSupport::TaggedLogging::ERROR
  • Loading branch information
josevalim committed Jan 21, 2012
2 parents c701358 + caf7856 commit a720e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/tagged_logging.rb
Expand Up @@ -27,7 +27,7 @@ def tagged(*new_tags)
new_tags.size.times { tags.pop } new_tags.size.times { tags.pop }
end end


def silence(temporary_level = ERROR, &block) def silence(temporary_level = Logger::ERROR, &block)
@logger.silence(temporary_level, &block) @logger.silence(temporary_level, &block)
end end
deprecate :silence deprecate :silence
Expand Down
4 changes: 4 additions & 0 deletions activesupport/test/tagged_logging_test.rb
Expand Up @@ -64,4 +64,8 @@ def flush(*)


assert_equal "[BCX] [Jason] Funky time\n[BCX] Junky time!\n", @output.string assert_equal "[BCX] [Jason] Funky time\n[BCX] Junky time!\n", @output.string
end end

test "silence" do
assert_nothing_raised { @logger.silence {} }
end
end end

0 comments on commit a720e34

Please sign in to comment.