Do not evaluate :if arguments when :on is not satisfied for transaction callbacks
#28063

Erol wants to merge Erol:prioritize-callback-on-action-before-if into rails:master

We do not currently have an analysis of these two commits