Fixing Rails 4.0.1 deprecation of BasicObject.