Sha256: 27bff2f6fe95c98c4d6053b60394009fb825bd48daa931ef5dfaa135ee0235fb

Contents?: true

Size: 262 Bytes

Versions: 10

Compression:

Stored size: 262 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
doorkeeper-4.2.6 lib/doorkeeper/oauth/error.rb
doorkeeper-4.2.5 lib/doorkeeper/oauth/error.rb
doorkeeper-4.2.0 lib/doorkeeper/oauth/error.rb
doorkeeper-4.1.0 lib/doorkeeper/oauth/error.rb
doorkeeper-4.0.0 lib/doorkeeper/oauth/error.rb
doorkeeper-4.0.0.rc4 lib/doorkeeper/oauth/error.rb
doorkeeper-4.0.0.rc3 lib/doorkeeper/oauth/error.rb
doorkeeper-4.0.0.rc2 lib/doorkeeper/oauth/error.rb
doorkeeper-4.0.0.rc1 lib/doorkeeper/oauth/error.rb
doorkeeper-3.1.0 lib/doorkeeper/oauth/error.rb