Module: Roar::JSON::JSONAPI

Defined in:
lib/roar/json/json_api.rb

Defined Under Namespace

Modules: Declarative, Document, ForCollection, Fragment, Options, Renderer

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/roar/json/json_api.rb', line 7

def self.included(base)
  base.class_eval do
    include Roar::JSON
    include Roar::Hypermedia
    extend JSONAPI::Declarative
    extend JSONAPI::ForCollection
    include JSONAPI::Document

    nested :relationships do
    end

    nested :included do
    end
  end
end