From 4bef8357df40addb7962dea00864f1768cfcecdb Mon Sep 17 00:00:00 2001 From: "Jonathan Richard Henry Evans (JRHE)" Date: Wed, 23 Jul 2014 13:42:07 +0100 Subject: [PATCH] Update readme to use full class names for serializer rather than the symbol #19 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e635358..d6ba986 100644 --- a/README.md +++ b/README.md @@ -85,18 +85,18 @@ end ```ruby # Serializer options can be specified on routes or namespaces. -namespace 'foo', :serializer => :bar do +namespace 'foo', :serializer => BarSerializer do get "/" do # will use "bar" serializer end # Options specified on a route or namespace override those of the containing namespace. - get "/home", :serializer => :home do + get "/home", :serializer => HomeSerializer do # will use "home" serializer end # All standard options for `ActiveModel::Serializers` are supported. - get "/fancy_homes", :root => 'world', :each_serializer => :fancy_homes + get "/fancy_homes", :root => 'world', :each_serializer => FancyHomesSerializer ... end end