Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Need list of breaking changes from .lap20 on #92

Open
catmando opened this issue Apr 20, 2018 · 1 comment
Open

Need list of breaking changes from .lap20 on #92

catmando opened this issue Apr 20, 2018 · 1 comment

Comments

@catmando
Copy link
Contributor

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

@catmando
Copy link
Contributor Author

catmando commented Apr 20, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant