We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e85d68 commit 6e5b779Copy full SHA for 6e5b779
1 file changed
README.md
@@ -1018,6 +1018,14 @@ JSONAPI.configure do |config|
1018
end
1019
```
1020
1021
+To use a specific `OperationsProcessor` in a `ResourceController`, override the `create_operations_processor` method:
1022
+
1023
+```ruby
1024
+def create_operations_processor
1025
+ CountingActiveRecordOperationsProcessor.new
1026
+end
1027
+```
1028
1029
The callback code will be called after each find. It will use the same options as the find operation, without the
1030
pagination, to collect the record count. This is stored in the `operation_meta`, which will be returned in the top level
1031
meta element.
0 commit comments