map is polymorphic on message
This commit is contained in:
parent
c871c0e504
commit
107b42bc88
1 changed files with 1 additions and 1 deletions
|
@ -17,6 +17,6 @@ class Message < ApplicationRecord
|
|||
end
|
||||
|
||||
def after_created
|
||||
ActionCable.server.broadcast 'map_' + map.id.to_s, type: 'messageCreated', message: self.as_json
|
||||
ActionCable.server.broadcast 'map_' + resource.id.to_s, type: 'messageCreated', message: self.as_json
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue