Allow `on_rotation` in MessageEncryptor to be passed in constructor:
#36270

Edouard-chin wants to merge Edouard-chin:ec-on-rotation-constructor into rails:master

We do not currently have an analysis of these two commits