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