mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
ruby 1.9.3 compat ... to_h does not exist there
This commit is contained in:
parent
54fed60ecb
commit
5d4760f91d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue