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

Need list of breaking changes from .lap20 on #92

Open catmando opened 6 years ago

catmando commented 6 years ago

just add any comments here for any you know of...

catmando commented 6 years ago

lap28: (in progress )

Model.find(a: 1, b: 2) can now take multiple attributes, but it now consistenly only finds records based on last sync with the database. So if you say for example x.some_attribute = 'bar' and then do a X.find(some_attribute: 'bar') it won't find anything x until you save it. This is consistent with rails, and necessary to make scopes update correctly.

Errors are now handled just like server side. (thanks to @sfcgeorge for this) but if you are using the error attribute currently you will have to fix.

Scopes now are regulated (to prevent for example unauthorized accessing the count of your websites customers). To get pre lap28 behavior add this to your ApplicationRecord: regulate_scope :all