mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
9 lines
239 B
Ruby
9 lines
239 B
Ruby
class ProfileComment < Sequel::Model
|
|
one_to_one :event
|
|
many_to_one :site
|
|
many_to_one :actioning_site, :class => :Site
|
|
|
|
def after_create
|
|
self.event = Event.create site_id: site.id, actioning_site_id: actioning_site.id
|
|
end
|
|
end
|