Method: Graphiti::Runner#jsonapi_context
- Defined in:
- lib/graphiti/runner.rb
#jsonapi_context ⇒ Object
Typically, this is ‘self’ of a controller We’re overriding here so we can do stuff like
Graphiti.with_context my_context, {} do
Runner.new ...
end
28 29 30 |
# File 'lib/graphiti/runner.rb', line 28 def jsonapi_context Graphiti.context[:object] end |