Allow event customization for Rails metal controllers