Skip to content

Commit cd1829d

Browse files
committed
Merge pull request #694 from joaomdmoura/0-9-stable
Fixing README at 0.9.0 by removing reference to attribute method #657
2 parents 89f87bf + 6fb6162 commit cd1829d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ ActiveModel::Serializer.setup do |config|
257257
end
258258
````
259259

260-
This will build association keys like `comments` or `author` instead of `comment_ids` or `author_id`.
260+
This will build association keys like `comments` or `author` instead of `comment_ids` or `author_id`.
261261

262262
## Getting the old version
263263

@@ -304,7 +304,7 @@ Since this shadows any attribute named `object`, you can include them through `o
304304
305305
```ruby
306306
class VersionSerializer < ActiveModel::Serializer
307-
attribute :version_object, key: :object
307+
attributes :version_object
308308
309309
def version_object
310310
object.object

0 commit comments

Comments
 (0)