Sha256: 2cc18d77e419406cb5d4d0f144d0942277029d8911536a54e35795321eaacea6
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require "strain/engine" module Strain JSONAPI::Exceptions::ValidationErrors.module_eval do def json_api_error(attr_key, message) a = JSONAPI::Error.new(code: JSONAPI::VALIDATION_ERROR, status: :unprocessable_entity, title: message, detail: "#{format_key(attr_key)} - #{message}", source: { pointer: pointer(attr_key) }) # binding.pry a end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strain-0.0.2 | lib/strain.rb |
strain-0.0.1 | lib/strain.rb |