hyper-mesh icon indicating copy to clipboard operation
hyper-mesh copied to clipboard

Need list of breaking changes from .lap20 on

Open catmando opened this issue 7 years ago • 1 comments

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

catmando avatar Apr 20 '18 07:04 catmando

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

catmando avatar Apr 20 '18 08:04 catmando