Sha256: 83b73a342386f63b0b0dfef02afe3b65aca296bc1d1de97d654392c848725f8c

Contents?: true

Size: 288 Bytes

Versions: 29

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OAuth
    Error = Struct.new(:name, :state) do
      def description
        I18n.translate(
          name,
          scope: %i[doorkeeper errors messages],
          default: :server_error,
        )
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
doorkeeper-5.8.0 lib/doorkeeper/oauth/error.rb
doorkeeper-5.7.1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.7.0 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.9 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.8 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.7 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.6 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.5 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.4 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.3 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.0 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.0.rc2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.6.0.rc1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.5.4 lib/doorkeeper/oauth/error.rb
doorkeeper-5.5.3 lib/doorkeeper/oauth/error.rb
doorkeeper-5.5.2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.5.1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.5.0 lib/doorkeeper/oauth/error.rb