ruby-hyperloop / hyper-mesh

The project has moved to Hyperstack!! - Synchronization of active record models across multiple clients using Pusher, ActionCable, or Polling
https://hyperstack.org/
MIT License
22 stars 12 forks source link

when loading an STI subclass it may not set the type #91

Closed catmando closed 6 years ago

catmando commented 6 years ago

for example

      ReactiveRecord.load do
        Sti::NoSyncSubClass1.first.itself
      end.then do |record|
        # record.type != 'Sti::NoSyncSubClass1'
      end

if you add Sti::NoSyncSubClass1.first.type during the load then all is well

catmando commented 6 years ago

closed ab8637bc2b3a250f1e74544245375cb9806a7442