Sha256: fdb4a4e74170ab4d13bf0b99c31357371bf63af56b5f06dd6e95d2ab53204338

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module Tanshuku
  class Configuration
    module DefaultExceptionReporter
      def self.call(exception:, original_url:)
        Rails.logger.warn("Tanshuku - Failed to shorten a URL: #{exception.inspect} for #{original_url.inspect}")
      end
    end

    include ActiveModel::Attributes

    attribute :default_url_options, default: {}
    attribute :exception_reporter, default: DefaultExceptionReporter
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tanshuku-0.0.12 lib/tanshuku/configuration.rb
tanshuku-0.0.11 lib/tanshuku/configuration.rb