Method: Graphiti::ResourceProxy#jsonapi_render_options

Defined in:
lib/graphiti/resource_proxy.rb

#jsonapi_render_options(opts = {}) ⇒ Object



46
47
48
49
50
# File 'lib/graphiti/resource_proxy.rb', line 46

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