ruby 1.9.3 compat ... to_h does not exist there

This commit is contained in:
Sam 2013-07-01 12:44:46 +10:00
parent 54fed60ecb
commit 5d4760f91d
1 changed files with 1 additions and 1 deletions

View File

@ -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