Sha256: 8dbe135037d0a812915a0ceaad259a39d595119248113b3f616bbc25d546d3bd

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

module Katello
  module UINotifications
    module ContentView
      class DeleteLatestVersionFailure < ::UINotifications::Base
        private

        def create
          Notification.create!(
            subject: subject,
            initiator: initiator,
            audience: ::Notification::AUDIENCE_ADMIN,
            notification_blueprint: blueprint
          )
        end

        def blueprint
          @blueprint ||= NotificationBlueprint.find_by(name: 'content_view_auto_publish_error')
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.15.0 app/services/katello/ui_notifications/content_view/delete_latest_version_failure.rb
katello-4.15.0.rc2 app/services/katello/ui_notifications/content_view/delete_latest_version_failure.rb
katello-4.15.0.rc1 app/services/katello/ui_notifications/content_view/delete_latest_version_failure.rb