Sha256: 2bceb82d63231c419f392239e97b6a6d7df8857b85808863cd39ae5977ff1017

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

require "flipper/notifications/event_serializer"
require "flipper/notifications/webhooks/serializer"
require "flipper/notifications/notifiers/webhook_notifier"

module Flipper
  module Notifications
    class Railtie < Rails::Railtie

      initializer "flipper-notifications.configure_rails_initialization" do
        Flipper::Notifications.subscribe!

        config.active_job.custom_serializers += [
          EventSerializer,
          Webhooks::Serializer
        ]
      end

      config.after_initialize do
        WebhookNotificationJob.disable_sidekiq_retries
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flipper-notifications-0.1.6 lib/flipper/notifications/railtie.rb
flipper-notifications-0.1.5 lib/flipper/notifications/railtie.rb
flipper-notifications-0.1.4 lib/flipper/notifications/railtie.rb
flipper-notifications-0.1.3 lib/flipper/notifications/railtie.rb
flipper-notifications-0.1.2 lib/flipper/notifications/railtie.rb