Sha256: c6aec6dc9044aeb508bda54f749441814c4b8cf960d0d7acaba6551f49921d42

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

module SimpleJsonapi
  module Errors
    module ActiveRecord
      class RecordNotFoundSerializer < SimpleJsonapi::ErrorSerializer
        status "404"
        code "not_found"
        title "Not found"
        detail { |ex| ex.message }
        source do
          parameter { |ex| ex.primary_key }
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_jsonapi_rails-1.3.0 lib/simple_jsonapi/errors/active_record/record_not_found_serializer.rb
simple_jsonapi_rails-1.2.0 lib/simple_jsonapi/errors/active_record/record_not_found_serializer.rb
simple_jsonapi_rails-1.1.1 lib/simple_jsonapi/errors/active_record/record_not_found_serializer.rb
simple_jsonapi_rails-1.1.0 lib/simple_jsonapi/errors/active_record/record_not_found_serializer.rb
simple_jsonapi_rails-1.0.0 lib/simple_jsonapi/errors/active_record/record_not_found_serializer.rb