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 end
reloadable_patch do reloadable_patch do
require 'post' Post.class_eval do
class ::Post
has_one :event, has_one :event,
dependent: :destroy, dependent: :destroy,
class_name: 'DiscoursePostEvent::Event', class_name: 'DiscoursePostEvent::Event',