Ask HN: Who and how uses ensuring_owner_was on ActiveRecord

1 points by ceritium ↗ HN
Reading the docs for the `has_one` relation of ActiveRecord I found the option `ensuring_owner_was`

I didn't understand how to use it, so I looked for it on Github, but it doesn't seem very popular...

https://github.com/search?q=ensuring_owner_was+language%3ARuby+path%3Aapp%2Fmodels&type=code

2 comments

[ 2.6 ms ] story [ 12.5 ms ] thread