Sha256: 19fff708edceec652e480713276cfe9f094f5e8e6f4650c71de1af30b7fbca07

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OAuth
    Error = Struct.new(:name, :state, :translate_options) do
      def description
        options = (translate_options || {}).merge(
          scope: %i[doorkeeper errors messages],
          default: :server_error,
        )

        I18n.translate(name, **options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doorkeeper-5.8.1 lib/doorkeeper/oauth/error.rb