Deletion broadcast cleanup
parent
72d94c6eb0
commit
aae6f1305b
|
@ -24,7 +24,8 @@ class ApplicationRecord < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def broadcast_payload
|
def broadcast_payload
|
||||||
{ body: destroyed? ? "null" : self.as_json }.to_json
|
body = (destroyed? ? nil : self).as_json
|
||||||
|
{ body: body }.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
def chan_name
|
def chan_name
|
||||||
|
|
Loading…
Reference in New Issue