DEV: simpler post eval

This commit is contained in:
jjaffeux 2020-08-20 15:21:26 +02:00
parent 40232c1663
commit d1bf3bafeb
1 changed files with 1 additions and 3 deletions

View File

@ -131,9 +131,7 @@ after_initialize do
end
reloadable_patch do
require 'post'
class ::Post
Post.class_eval do
has_one :event,
dependent: :destroy,
class_name: 'DiscoursePostEvent::Event',