rails/rails — pull request #13834 by mikesea (2014-01-25 00:52:01+00:00)
Title: Fix Class#singleton_class? for Ruby 2.1 compatability

This is a backport of https://github.com/rails/rails/pull/12532 to Rails 3.2