You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to have custom error responses being delivered, just create your own `Api::Errors` that inherits from `JsonapiErrorsHandler::StandardError`
81
+
82
+
### Localization example
83
+
84
+
If you want to localize your responses, just create a class:
85
+
86
+
```
87
+
module Api::Errors
88
+
class Forbidden < ::JsonapiErrorsHandler::Errors::StandardError
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -65,6 +116,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/driggl
65
116
**How to contribute:**
66
117
67
118
1. Fork repository
119
+
2. Install [Rubocop](https://github.com/rubocop-hq/rubocop) - make sure you run it before commiting changes
68
120
2. Commit changes
69
121
- Keep commits small and atomic
70
122
- Start commit message from keywords (Add/Remove/Change/Refactor/Move/Rename/Upgrade/Downgrade)
0 commit comments