discourse/discourse — pull request #1605 by vikhyat (2013-11-03 05:15:47+00:00)
Title: Fix serialization of ActiveRecord::Associations::CollectionProxy in Rails 4

In Rails 4, associations (such as `post.replies`) return a ActiveRecord::Associations::CollectionProxy rather than an actual array. The collection proxy needs to be serialised using the ArraySerializer. The post#replies action was broken because of this (possibly others too, but NewRelic was only reporting this one).