You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
just add any comments here for any you know of...
The text was updated successfully, but these errors were encountered: