Skip to content

Commit 742b2cc

Browse files
author
Sebastian Wilgosz
authored
Fix documentation for custom error mapping!
Resolves driggl#20
1 parent 7749ca0 commit 742b2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ If you want your custom errors being handled by default, just add them to the ma
4646

4747
```ruby
4848
include JsonapiErrorsHandler
49-
ErrorsMapper.map_errors!({
49+
ErrorMapper.map_errors!({
5050
'ActiveRecord::RecordNotFound' => 'JsonapiErrorsHandler::Errors::NotFound',
5151
'ActiveRecord::RecordInvalid' => 'JsonapiErrorsHandler::Errors::Invalid',
5252
})

0 commit comments

Comments
 (0)