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

primary_key must be explicitly set to be overridden #87

Open catmando opened 6 years ago

catmando commented 6 years ago

In rails server side there is some trickery where the primary key can be overridden by some properties of the schema.

This will not work for the client. It could be fixed (by sending the primary key down from the server along with the column data), but there is an easy workaround: just set the primary key explicitly in the model.