Sha256: 4e1f2be2850c8e772d4f7f4295041f9c847551531220558b4cc5bf240d7afd97

Contents?: true

Size: 535 Bytes

Versions: 189

Compression:

Stored size: 535 Bytes

Contents

module Katello
  module UINotifications
    module ContentView
      class AutoPublishFailure < ::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

189 entries across 189 versions & 1 rubygems

Version Path
katello-3.7.1.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.7.1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.8.0 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.8.0.rc3 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.8.0.rc2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.7.0 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.8.0.rc1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.7.0.rc2 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb
katello-3.7.0.rc1 app/services/katello/ui_notifications/content_view/auto_publish_failure.rb