We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9caf694 + 6e5b779 commit 5ba403aCopy full SHA for 5ba403a
1 file changed
README.md
@@ -1097,6 +1097,14 @@ JSONAPI.configure do |config|
1097
end
1098
```
1099
1100
+To use a specific `OperationsProcessor` in a `ResourceController`, override the `create_operations_processor` method:
1101
+
1102
+```ruby
1103
+def create_operations_processor
1104
+ CountingActiveRecordOperationsProcessor.new
1105
+end
1106
+```
1107
1108
The callback code will be called after each find. It will use the same options as the find operation, without the
1109
pagination, to collect the record count. This is stored in the `operation_meta`, which will be returned in the top level
1110
meta element.
0 commit comments