Nice post π I didn't know about none. I wonder why AR queries the db with 1=0 instead of doing whatever .none does π€
none
1=0
.none
Right? I went into the AR source code one weekend and tried to update it in such a way that none would be used when it saw an empty array. Broke a lot of specs and after 3 hours of trying to fix them I gave up. One day I will go back!
I feel that, lol. So vindicating when you finally get it after numerous independent attempts!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice post π I didn't know about
none
. I wonder why AR queries the db with1=0
instead of doing whatever.none
does π€Right? I went into the AR source code one weekend and tried to update it in such a way that none would be used when it saw an empty array. Broke a lot of specs and after 3 hours of trying to fix them I gave up. One day I will go back!
I feel that, lol. So vindicating when you finally get it after numerous independent attempts!