Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: typo fix on attributes #613

Merged
merged 1 commit into from
Aug 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ serializers:

```ruby
class PostSerializer < ActiveModel::Serializer
attribute :title, :body
attributes :title, :body

has_many :comments

Expand All @@ -43,7 +43,7 @@ and

```ruby
class CommentSerializer < ActiveModel::Serializer
attribute :name, :body
attributes :name, :body

belongs_to :post

Expand Down Expand Up @@ -115,7 +115,7 @@ The generated seralizer will contain basic `attributes` and

```ruby
class PostSerializer < ActiveModel::Serializer
attribute :title, :body
attributes :title, :body

has_many :comments

Expand All @@ -127,7 +127,7 @@ and

```ruby
class CommentSerializer < ActiveModel::Serializer
attribute :name, :body
attributes :name, :body

belongs_to :post_id

Expand Down