Skip to content

Commit e9f2596

Browse files
addressing pull request comments
1 parent 6a8da1f commit e9f2596

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/general/passing_arbitrary_options.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Passing Arbitrary Options to A Serializer
1+
## Passing Arbitrary Options To A Serializer
22

33
Let's say you have a basic Post Controller:
44

@@ -18,7 +18,7 @@ class PostSerializer < ActiveModel::Serializer
1818
end
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
2222
into 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.

0 commit comments

Comments
 (0)