From 5d4760f91db964121b2feaf1d63ca4bc3d1fbe9a Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 1 Jul 2013 12:44:46 +1000 Subject: [PATCH] ruby 1.9.3 compat ... to_h does not exist there --- app/models/post_action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post_action.rb b/app/models/post_action.rb index 74e5e1d294..25a9acd46a 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -345,7 +345,7 @@ class PostAction < ActiveRecord::Base end # TODO add serializer so we can skip this - posts.map!(&:to_h) + posts.map!(&:marshal_dump) [posts, User.select([:id, :username, :email]).where(id: users.to_a).all] end