Sha256: 45dd2b22608a55244159796b5e4723c73df344aea49b207eb1129d3bb4f8cdf3

Contents?: true

Size: 485 Bytes

Versions: 30

Compression:

Stored size: 485 Bytes

Contents

module UcbRailsUser
  module Configuration

    class ExceptionNotification

      class << self

        def configure(config)
          return if config.blank?

          config = config.symbolize_keys
          config[:email].symbolize_keys!
          config[:email][:email_prefix] = config[:email][:email_prefix].gsub("{env}", RailsEnvironment.short)

          Rails.application.config.middleware.use ::ExceptionNotification::Rack, config
        end
      end
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ucb_rails_user-7.0.0 lib/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-6.2.2 lib/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-6.2.0 lib/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-6.1.1 lib/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-6.1.0 lib/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-6.0.0 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-5.0.0 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.1.2 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.1.1 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.1.0 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.7 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.6 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.5 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.4 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.3 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.2 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.1 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.0 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-3.0.2 app/models/ucb_rails_user/configuration/exception_notification.rb
ucb_rails_user-4.0.0.beta1 app/models/ucb_rails_user/configuration/exception_notification.rb