rails/rails — pull request #9002 by dahakawang (2013-01-20 00:22:31+00:00)
Title: issue #8934 sovled

runtime exception will be thrown when a anoymous class is provided to establish_connection.
also updated the corresponding test cases.