README.md in active_model_serializers-0.10.4 vs README.md in active_model_serializers-0.10.5

- old
+ new

@@ -88,12 +88,12 @@ If you're reading this at https://github.com/rails-api/active_model_serializers you are reading documentation for our `master`, which may include features that have not been released yet. Please see below for the documentation relevant to you. - [0.10 (master) Documentation](https://github.com/rails-api/active_model_serializers/tree/master) -- [0.10.3 (latest release) Documentation](https://github.com/rails-api/active_model_serializers/tree/v0.10.3) - - [![API Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/gems/active_model_serializers/0.10.3) +- [0.10.4 (latest release) Documentation](https://github.com/rails-api/active_model_serializers/tree/v0.10.4) + - [![API Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/gems/active_model_serializers/0.10.4) - [Guides](docs) - [0.9 (0-9-stable) Documentation](https://github.com/rails-api/active_model_serializers/tree/0-9-stable) - [![API Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/rails-api/active_model_serializers/0-9-stable) - [0.8 (0-8-stable) Documentation](https://github.com/rails-api/active_model_serializers/tree/0-8-stable) - [![API Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/rails-api/active_model_serializers/0-8-stable) @@ -114,11 +114,11 @@ class SomeResource < ActiveRecord::Base # columns: title, body end # or class SomeResource < ActiveModelSerializers::Model - attr_accessor :title, :body + attributes :title, :body end ``` And initialized as: @@ -277,10 +277,10 @@ `ActiveModelSerializers::Model` may be used either as a reference implementation, or in production code. ```ruby class MyModel < ActiveModelSerializers::Model - attr_accessor :id, :name, :level + attributes :id, :name, :level end ``` The default serializer for `MyModel` would be `MyModelSerializer` whether MyModel is an ActiveRecord::Base object or not.