Sha256: ba6cab14abf9b3cf3490bc4fa1d0e9e311ab5f0a6c6defc6bca322e1a6f24755

Contents?: true

Size: 201 Bytes

Versions: 3

Compression:

Stored size: 201 Bytes

Contents

# frozen_string_literal: true

json.error do
  json.code @code
  if @code < 500 && @exception.present?
    json.message @exception.message
  else
    json.message t("json_errors.#{@symbol}")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wallaby-6.1.0 app/views/wallaby/resources/error.json.jbuilder
wallaby-6.0.2 app/views/wallaby/resources/error.json.jbuilder
wallaby-6.0.1 app/views/wallaby/resources/error.json.jbuilder