Skip to content

Commit 6fb6162

Browse files
committed
Fixing README at 0.9.0 and removing reference to attribute method #657
1 parent 89f87bf commit 6fb6162

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)