mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
ruby 1.9.3 compat ... to_h does not exist there
This commit is contained in:
parent
54fed60ecb
commit
5d4760f91d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user