Ersetzen von email/notification.html über ein benutzerdefiniertes Plugin – Tipps?

Ich habe herausgefunden, worin das Problem bestand. Der Code für plugin.rb muss innerhalb von after_initialize platziert werden:

after_initialize do
    require_dependency 'user_notifications'
    module ::UserNotificationsOverride
        def send_notification_email(opts)
            Rails.configuration.paths["app/views"].unshift(File.expand_path("../templates", __FILE__))
            super(opts)
        end
    end

    class ::UserNotifications
        prepend ::UserNotificationsOverride
    end
end

Bei mir funktioniert das jetzt einwandfrei. Danke, dass du diese Methode geteilt hast!