Sha256: b51a46108989dc5fdfa894295235cc02e8baed4c505ef47f36b304a96072ef97

Contents?: true

Size: 287 Bytes

Versions: 18

Compression:

Stored size: 287 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

18 entries across 18 versions & 1 rubygems

Version Path
doorkeeper-5.1.2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.6 lib/doorkeeper/oauth/error.rb
doorkeeper-5.0.3 lib/doorkeeper/oauth/error.rb
doorkeeper-5.1.1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.5 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.4 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.3 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.0 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.0.rc3 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.0.rc2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.2.0.rc1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.1.0 lib/doorkeeper/oauth/error.rb
doorkeeper-5.1.0.rc2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.1.0.rc1 lib/doorkeeper/oauth/error.rb
doorkeeper-5.0.2 lib/doorkeeper/oauth/error.rb
doorkeeper-5.0.1 lib/doorkeeper/oauth/error.rb