File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- ## Passing Arbitrary Options to A Serializer
1
+ ## Passing Arbitrary Options To A Serializer
2
2
3
3
Let's say you have a basic Post Controller:
4
4
@@ -18,7 +18,7 @@ class PostSerializer < ActiveModel::Serializer
18
18
end
19
19
```
20
20
21
- This works all fine and well, but maybe you passing in some "artibrary " options
21
+ This works all fine and well, but maybe you passing in some "arbitrary " options
22
22
into the serializer. Here's what you would do:
23
23
24
24
### posts_controller.rb
@@ -41,6 +41,5 @@ into the serializer. Here's what you would do:
41
41
...
42
42
```
43
43
44
- These options can be anything that isn't already reserved for use by AMS. For example,
45
- you won't be able to pass in a ` meta ` or ` root ` option like the example above. Those
46
- parameters are reserved for specific behavior within the app.
44
+ These options can be anything that isn't already reserved for use by
45
+ ActiveModelSerializers' adapter options.
You can’t perform that action at this time.
0 commit comments