Open catmando opened 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
just add any comments here for any you know of...