Closed mikwat closed 6 years ago
Since this is an interface change I would expect something to be updated in README, too.
Thanks for the feedback @dblock I'm realizing the root problem appears to be that has_and_belongs_to_many
relations may not be properly tracked. I'm going to close this PR and create a spec to explain what I'm seeing.
Normally
track_history_for_action
is always called with a block viaaround_create/update/destroy
, but I've found in my own code base that there are times when it's desirable to call this method directly without a block.Regardless, this change seems like good hygiene with little downside. If a block isn't provided, then there's no need to rescue and rollback the new history track.