1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-14 16:37:20 +02:00
neocities/models/profile_comment.rb
2014-05-08 08:47:28 -07:00

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