rails/rails — pull request #5894 by norman (2012-04-18 17:51:07+00:00)
Title: Fix nil logger on 3.2

The logger can sometimes be `nil` when AR records are used outside of Rails, this adds a check.

This patch is not necessary on 3-1-stable or master.