44 <tr >
55 <td>Build Status</td>
66 <td>
7- <a href="https://travis-ci.org/rails-api/active_model_serializers"><img src="https://travis-ci.org/rails-api/active_model_serializers.svg?branch=master " alt="Build Status" ></a>
8- <a href="https://ci.appveyor.com/project/joaomdmoura /active-model-serializers/branch/master "><img src="https://ci.appveyor.com/api/projects/status/x6xdjydutm54gvyt/branch/master?svg=true" alt="Build status"></a>
7+ <a href="https://travis-ci.org/rails-api/active_model_serializers"><img src="https://api. travis-ci.org/rails-api/active_model_serializers.svg?branch=0-10-stable " alt="Build Status" ></a>
8+ <a href="https://ci.appveyor.com/project/bf4 /active-model-serializers/branch/0-10-stable "><img src="https://ci.appveyor.com/api/projects/status/x6xdjydutm54gvyt/branch/master?svg=true" alt="Build status"></a>
99 </td>
1010 </tr >
1111 <tr >
@@ -41,7 +41,7 @@ these methods to the adapter.)
4141
4242By default ActiveModelSerializers will use the ** Attributes Adapter** (no JSON root).
4343But we strongly advise you to use ** JsonApi Adapter** , which
44- follows 1.0 of the format specified in [ jsonapi.org/format] ( http ://jsonapi.org/format) .
44+ follows 1.0 of the format specified in [ jsonapi.org/format] ( https ://jsonapi.org/format) .
4545Check how to change the adapter in the sections below.
4646
4747` 0.10.x ` is ** not** backward compatible with ` 0.9.x ` nor ` 0.8.x ` .
@@ -75,9 +75,9 @@ More information is available in the [Guides](docs) and
7575If you find a bug, please report an [ Issue] ( https://github.com/rails-api/active_model_serializers/issues/new )
7676and see our [ contributing guide] ( CONTRIBUTING.md ) .
7777
78- If you have a question, please [ post to Stack Overflow] ( http ://stackoverflow.com/questions/tagged/active-model-serializers) .
78+ If you have a question, please [ post to Stack Overflow] ( https ://stackoverflow.com/questions/tagged/active-model-serializers) .
7979
80- If you'd like to chat, we have a [ community slack] ( http ://amserializers.herokuapp.com) .
80+ If you'd like to chat, we have a [ community slack] ( https ://amserializers.herokuapp.com) .
8181
8282Thanks!
8383
@@ -87,14 +87,14 @@ If you're reading this at https://github.com/rails-api/active_model_serializers
8787reading documentation for our ` master ` , which may include features that have not
8888been released yet. Please see below for the documentation relevant to you.
8989
90- - [ 0.10 (master ) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/master )
91- - [ 0.10.6 (latest release) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/v0.10.6 )
92- - [ ![ API Docs] ( http ://img.shields.io/badge/yard-docs-blue.svg)] ( http ://www.rubydoc.info/gems/active_model_serializers/0.10.6 )
93- - [ Guides] ( docs )
90+ - [ 0.10 (0-10-stable ) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-10-stable )
91+ - [ 0.10.10 (latest release) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/v0.10.10 )
92+ - [ ![ API Docs] ( https ://img.shields.io/badge/yard-docs-blue.svg)] ( https ://www.rubydoc.info/gems/active_model_serializers/0.10.10 )
93+ - [ Guides] ( docs )
9494- [ 0.9 (0-9-stable) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-9-stable )
95- - [ ![ API Docs] ( http ://img.shields.io/badge/yard-docs-blue.svg)] ( http ://www.rubydoc.info/github/rails-api/ active_model_serializers/0-9-stable )
95+ - [ ![ API Docs] ( https ://img.shields.io/badge/yard-docs-blue.svg)] ( https ://www.rubydoc.info/gems/ active_model_serializers/0.9.7 )
9696- [ 0.8 (0-8-stable) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-8-stable )
97- - [ ![ API Docs] ( http ://img.shields.io/badge/yard-docs-blue.svg)] ( http ://www.rubydoc.info/github/rails-api/ active_model_serializers/0-8-stable )
97+ - [ ![ API Docs] ( https ://img.shields.io/badge/yard-docs-blue.svg)] ( https ://www.rubydoc.info/gems/ active_model_serializers/0.8.4 )
9898
9999
100100## High-level behavior
@@ -171,12 +171,12 @@ The original design is also available [here](https://github.com/rails-api/active
171171
172172### ActiveModel::Serializer
173173
174- An ** ` ActiveModel::Serializer ` ** wraps a [ serializable resource] ( https://github.com/rails/rails/blob/4-2-stable /activemodel/lib/active_model/serialization.rb )
174+ An ** ` ActiveModel::Serializer ` ** wraps a [ serializable resource] ( https://github.com/rails/rails/blob/master /activemodel/lib/active_model/serialization.rb )
175175and exposes an ` attributes ` method, among a few others.
176176It allows you to specify which attributes and associations should be represented in the serializatation of the resource.
177177It requires an adapter to transform its attributes into a JSON document; it cannot be serialized itself.
178178It may be useful to think of it as a
179- [ presenter] ( http ://blog.steveklabnik.com/posts/2011-09-09-better-ruby-presenters) .
179+ [ presenter] ( https ://blog.steveklabnik.com/posts/2011-09-09-better-ruby-presenters) .
180180
181181#### ActiveModel::CollectionSerializer
182182
@@ -188,7 +188,7 @@ and, if there is no serializer, primitives.
188188The ** ` ActiveModelSerializers::Adapter::Base ` ** describes the structure of the JSON document generated from a
189189serializer. For example, the ` Attributes ` example represents each serializer as its
190190unmodified attributes. The ` JsonApi ` adapter represents the serializer as a [ JSON
191- API] ( http ://jsonapi.org/) document.
191+ API] ( https ://jsonapi.org/) document.
192192
193193### ActiveModelSerializers::SerializableResource
194194
@@ -229,7 +229,7 @@ High-level overview:
229229 - ` :each_serializer ` specifies the serializer for each resource in the collection.
230230- For a ** single resource** , the ` :serializer ` option is the resource serializer.
231231- Options are partitioned in serializer options and adapter options. Keys for adapter options are specified by
232- [ ` ADAPTER_OPTION_KEYS ` ] ( https://github.com/rails-api/active_model_serializers/blob/master/ lib/active_model_serializers/serializable_resource.rb#L5) .
232+ [ ` ADAPTER_OPTION_KEYS ` ] ( lib/active_model_serializers/serializable_resource.rb#L5 ) .
233233 The remaining options are serializer options.
234234
235235Details:
@@ -254,7 +254,7 @@ Details:
254254 2 . ` adapter_instance = ActiveModel::Serializer::Adapter.create(serializer_instance, adapter_opts) `
2552551 . ** ActiveModel::Serializer::CollectionSerializer#new**
256256 1 . If the ` serializer_instance ` was a ` CollectionSerializer ` and the ` :serializer ` serializer_opts
257- is present, then [ that serializer is passed into each resource] ( https://github.com/rails-api/active_model_serializers/blob/a54d237e2828fe6bab1ea5dfe6360d4ecc8214cd /lib/active_model/serializer/array_serializer .rb#L14-L16 ) .
257+ is present, then [ that serializer is passed into each resource] ( https://github.com/rails-api/active_model_serializers/blob/0-10-stable /lib/active_model/serializer/collection_serializer .rb#L77-L79 ) .
2582581 . ** ActiveModel::Serializer#attributes** is used by the adapter to get the attributes for
259259 resource as defined by the serializer.
260260
@@ -270,7 +270,7 @@ to know about, but not part of ActiveModelSerializers.)
270270 [ (code)] ( lib/active_model/serializer/lint.rb ) .
271271
272272ActiveModelSerializers provides a
273- [ ` ActiveModelSerializers::Model ` ] ( https://github.com/rails-api/active_model_serializers/blob/master/ lib/active_model_serializers/model.rb) ,
273+ [ ` ActiveModelSerializers::Model ` ] ( lib/active_model_serializers/model.rb ) ,
274274which is a simple serializable PORO (Plain-Old Ruby Object).
275275
276276` ActiveModelSerializers::Model ` may be used either as a reference implementation, or in production code.
@@ -298,7 +298,7 @@ ActiveModelSerializers::SerializableResource.new(MyModel.new(level: 'awesome'),
298298
299299## Semantic Versioning
300300
301- This project adheres to [ semver] ( http ://semver.org/)
301+ This project adheres to [ semver] ( https ://semver.org/)
302302
303303## Contributing
304304
0 commit comments