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
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1118,9 +1118,9 @@ Callbacks can be defined for the following `JSONAPI::Resource` events:
1118
1118
- `:remove_to_one_link`
1119
1119
- `:replace_fields`
1120
1120
1121
-
##### `JSONAPI::OperationProcessor` Callbacks
1121
+
##### `JSONAPI::Processor` Callbacks
1122
1122
1123
-
Callbacks can also be defined for `JSONAPI::OperationProcessor` events:
1123
+
Callbacks can also be defined for `JSONAPI::Processor` events:
1124
1124
- `:operation`: Any individual operation.
1125
1125
- `:find`: A `find` operation is being processed.
1126
1126
- `:show`: A `show` operation is being processed.
@@ -1141,8 +1141,8 @@ See [Operation Processors] (#operation-processors) for details on using Operatio
1141
1141
##### `JSONAPI::OperationsProcessor` Callbacks (a removed feature)
1142
1142
1143
1143
Note: The `JSONAPI::OperationsProcessor` has been removed and replaced with the `JSONAPI::OperationDispatcher`
1144
-
and `OperationProcessor` classes per resource. The callbacks have been renamed and moved to the
1145
-
`OperationProcessor`s, with the exception of the `operations` callback which is now on the controller.
1144
+
and `Processor` classes per resource. The callbacks have been renamed and moved to the
1145
+
`Processor`s, with the exception of the `operations` callback which is now on the controller.
1146
1146
1147
1147
### Controllers
1148
1148
@@ -1385,10 +1385,10 @@ end
1385
1385
1386
1386
OperationProcessors are called to perform the operation(s) that make up a request. The controller (through the `OperationDispatcher`), creates an `OperatorProcessor` to handle each operation. The processor is created based on the resource name, including the namespace. If a processor does not exist for a resource (namespace matters) the default operation processor is used instead. The default processor can be changed by a configuration setting.
1387
1387
1388
-
Defining a custom `OperationProcessor` allows for custom callback handling of each operation type for each resource type. Forexample:
1388
+
Defining a custom `Processor` allows for custom callback handling of each operation type for each resource type. Forexample:
1389
1389
1390
1390
```ruby
1391
-
class Api::V4::BookOperationProcessor < JSONAPI::OperationProcessor
0 commit comments