We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a01640 commit 8aeb7e7Copy full SHA for 8aeb7e7
ruby/hyper-model/lib/reactive_record/broadcast.rb
@@ -72,7 +72,7 @@ class SendPacket < Hyperstack::ServerOp
72
73
def self.to_self(record, data = {})
74
# simulate incoming packet after a local save
75
- operation = if record.new?
+ operation = if record.new_record?
76
:create
77
elsif record.destroyed?
78
:destroy
0 commit comments