Rails.application.assets.register_preprocessor always raised TypeError

becase seems ActiveSupport.on_load(:after_initialize, ...) is too late.