README.md in conglomerate-0.11.0 vs README.md in conglomerate-0.11.1

- old
+ new

@@ -1,9 +1,10 @@ # Conglomerate -[![Gem Version](https://badge.fury.io/rb/conglomerate.png)](http://badge.fury.io/rb/conglomerate) [ ![Codeship Status for teamsnap/conglomerate](https://www.codeship.io/projects/7210a3f0-de00-0131-af05-5236ebb52643/status)](https://www.codeship.io/projects/24758) + +[![Gem Version](https://badge.fury.io/rb/conglomerate.png)](http://badge.fury.io/rb/conglomerate) [![Code Climate](https://codeclimate.com/github/teamsnap/conglomerate.png)](https://codeclimate.com/github/teamsnap/conglomerate) [![Coverage Status](https://coveralls.io/repos/teamsnap/conglomerate/badge.png?branch=master)](https://coveralls.io/r/teamsnap/conglomerate?branch=master) [![Dependency Status](https://gemnasium.com/teamsnap/conglomerate.png)](https://gemnasium.com/teamsnap/conglomerate) [![License](http://img.shields.io/license/MIT.png?color=green)](http://opensource.org/licenses/MIT) @@ -33,31 +34,33 @@ ## Usage ```ruby # Step 1: Create a serializer class TeamSerializer - include Conglomerate::RootBuilder + include Conglomerate::RootBuilder.serializer - href { teams_url } + collection do + href { teams_url } - item "Team" do |item| - href { team_url(item.id) } + item "Team" do |item| + href { team_url(item.id) } - datum :id - datum :name - datum :event_ids + datum :id + datum :name + datum :event_ids - link :events, :href => Proc.new { event_url(item.event_ids.join(",")) } - end + link :events, :href => Proc.new { event_url(item.event_ids.join(",")) } + end - link :root, :href => Proc.new { root_url } + link :root, :href => Proc.new { root_url } - query :search, :href => Proc.new { search_items_url } do - datum :id - end + query :search, :href => Proc.new { search_items_url } do + datum :id + end - template do - datum :name + template do + datum :name + end end end # Step 2: Serialize any object