Method: Graphiti::ResourceProxy#jsonapi_render_options

Defined in:
lib/graphiti/resource_proxy.rb

#jsonapi_render_options(opts = {}) ⇒ Object



35
36
37
38
39
# File 'lib/graphiti/resource_proxy.rb', line 35

def jsonapi_render_options(opts = {})
  opts[:expose] ||= {}
  opts[:expose][:context] = Graphiti.context[:object]
  opts
end