2016-04-26 12:08:12 +00:00
|
|
|
class Events::UserPresentOnMap < Event
|
2016-07-26 00:14:23 +00:00
|
|
|
# after_create :notify_users!
|
2016-04-26 12:08:12 +00:00
|
|
|
|
|
|
|
def self.publish!(map, user)
|
2016-07-26 00:14:23 +00:00
|
|
|
create!(kind: 'user_present_on_map',
|
2016-04-26 12:08:12 +00:00
|
|
|
eventable: map,
|
|
|
|
map: map,
|
|
|
|
user: user)
|
|
|
|
end
|
|
|
|
end
|