lib/roar/json/json_api.rb in roar-jsonapi-0.0.2 vs lib/roar/json/json_api.rb in roar-jsonapi-0.0.3

- old
+ new

@@ -5,14 +5,17 @@ require 'roar/json/json_api/member_name' require 'roar/json/json_api/defaults' require 'roar/json/json_api/meta' require 'roar/json/json_api/declarative' -require 'roar/json/json_api/for_collection' require 'roar/json/json_api/options' require 'roar/json/json_api/document' +require 'roar/json/json_api/single_resource' +require 'roar/json/json_api/resource_collection' +require 'roar/json/json_api/for_collection' + module Roar module JSON module JSONAPI # Include to define a JSON API Resource and make API methods available to # your `Roar::Decorator`. @@ -99,9 +102,10 @@ feature Roar::Hypermedia feature JSONAPI::Defaults, JSONAPI::Meta extend JSONAPI::Declarative extend JSONAPI::ForCollection include JSONAPI::Document + include JSONAPI::SingleResource self.representation_wrap = :data nested :relationships do end