addressing pull request comments

This commit is contained in:
Taylor Jones 2016-02-29 10:56:14 -05:00
parent 6a8da1f664
commit e9f259697a

View File

@ -1,4 +1,4 @@
## Passing Arbitrary Options to A Serializer ## Passing Arbitrary Options To A Serializer
Let's say you have a basic Post Controller: Let's say you have a basic Post Controller:
@ -18,7 +18,7 @@ class PostSerializer < ActiveModel::Serializer
end end
``` ```
This works all fine and well, but maybe you passing in some "artibrary" options This works all fine and well, but maybe you passing in some "arbitrary" options
into the serializer. Here's what you would do: into the serializer. Here's what you would do:
### posts_controller.rb ### posts_controller.rb
@ -41,6 +41,5 @@ into the serializer. Here's what you would do:
... ...
``` ```
These options can be anything that isn't already reserved for use by AMS. For example, These options can be anything that isn't already reserved for use by
you won't be able to pass in a `meta` or `root` option like the example above. Those ActiveModelSerializers' adapter options.
parameters are reserved for specific behavior within the app.