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
22
33Let's say you have a basic Post Controller:
44
@@ -18,7 +18,7 @@ class PostSerializer < ActiveModel::Serializer
1818end
1919```
2020
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
2222into the serializer. Here's what you would do:
2323
2424### posts_controller.rb
@@ -41,6 +41,5 @@ into the serializer. Here's what you would do:
4141...
4242```
4343
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