fix build

This commit is contained in:
Régis Hanol 2015-04-26 00:22:29 +02:00
parent 151dea4088
commit 8dc8aaaeb0

View file

@ -248,8 +248,8 @@ after_initialize do
post.custom_fields[POLLS_CUSTOM_FIELD] = polls post.custom_fields[POLLS_CUSTOM_FIELD] = polls
post.save_custom_fields(true) post.save_custom_fields(true)
# push the changes # publish the changes
DiscourseBus.publish("/polls/#{post_id}", { polls: polls }) DiscourseBus.publish("/polls/#{post.id}", { polls: polls })
end end
end end
else else