Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Good points over all. If you don't want to disable transaction fixtures for certain specs and still want to use after_commit, I have this little patch - https://gist.github.com/3205621 which works flawlessly.

And I liked author's solution of tracking attribute changes. But may be there is a cleaner way. I had similar problem where, I needed a handle on after_commit :on => :update but in observer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: