Skip to content

Commit

Permalink
Fix documentation for custom error mapping!
Browse files Browse the repository at this point in the history
Resolves #20
  • Loading branch information
Sebastian Wilgosz authored Aug 10, 2019
1 parent 7749ca0 commit 742b2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If you want your custom errors being handled by default, just add them to the ma

```ruby
include JsonapiErrorsHandler
ErrorsMapper.map_errors!({
ErrorMapper.map_errors!({
'ActiveRecord::RecordNotFound' => 'JsonapiErrorsHandler::Errors::NotFound',
'ActiveRecord::RecordInvalid' => 'JsonapiErrorsHandler::Errors::Invalid',
})
Expand Down

0 comments on commit 742b2cc

Please sign in to comment.