2016-09-24 11:00:46 +08:00
|
|
|
# frozen_string_literal: true
|
2017-11-25 11:23:47 -08:00
|
|
|
|
2017-01-23 19:30:13 -05:00
|
|
|
module Events
|
|
|
|
class UserPresentOnMap < Event
|
|
|
|
# after_create :notify_users!
|
2016-04-26 08:08:12 -04:00
|
|
|
|
2017-01-23 19:30:13 -05:00
|
|
|
def self.publish!(map, user)
|
|
|
|
create!(kind: 'user_present_on_map',
|
|
|
|
eventable: map,
|
|
|
|
map: map,
|
|
|
|
user: user)
|
|
|
|
end
|
2016-04-26 08:08:12 -04:00
|
|
|
end
|
|
|
|
end
|