Changed the AR dependency to respond to :after_commit by default.
Changed the AR dependency to respond to :after_commit by default.

:after_save and :after_destroy callbacks fire *before* the transaction is committed. This means (and it's a bit of an edge case) that if you try to access the DB from *outside* the transaction, you'll see the model as though the change causing the dependency to be invoked had never happened.

 SUPER frustrating to debug.

live-resource/activerecord