metamaps--metamaps/app/models/events/topic_updated.rb

14 lines
288 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-01-23 17:36:36 -05:00
module Events
class TopicUpdated < Event
# after_create :notify_users!
2017-01-23 17:36:36 -05:00
def self.publish!(topic, user, meta)
create!(kind: 'topic_updated',
eventable: topic,
user: user,
meta: meta)
end
end
end