mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
fix grammar in readme
This commit is contained in:
parent
55ef0f9cbd
commit
1fc314786e
@ -10,7 +10,7 @@ Serializers know about both a model and the `current_user`, so you can
|
|||||||
customize serialization based upon whether a user is authorized to see the
|
customize serialization based upon whether a user is authorized to see the
|
||||||
content.
|
content.
|
||||||
|
|
||||||
In short, **serializers replaces hash-driven development with object-oriented
|
In short, **serializers replace hash-driven development with object-oriented
|
||||||
development.**
|
development.**
|
||||||
|
|
||||||
# Installing Serializers
|
# Installing Serializers
|
||||||
@ -48,9 +48,9 @@ $ rails g serializer post
|
|||||||
### Support for PORO's and other ORM's.
|
### Support for PORO's and other ORM's.
|
||||||
|
|
||||||
Currently `ActiveModel::Serializers` adds serialization support to all models
|
Currently `ActiveModel::Serializers` adds serialization support to all models
|
||||||
that descend from `ActiveRecord`. If you are using another ORM or if you are
|
that descend from `ActiveRecord`. If you are using another ORM, or if you are
|
||||||
using objects that are `ActiveModel` compliant, but do not descend from
|
using objects that are `ActiveModel` compliant but do not descend from
|
||||||
`ActiveRecord`. You must add an include statement for
|
`ActiveRecord`, you must add an include statement for
|
||||||
`ActiveModel::SerializerSupport`.
|
`ActiveModel::SerializerSupport`.
|
||||||
|
|
||||||
# ActiveModel::Serializer
|
# ActiveModel::Serializer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user