Class: Graphiti::ContextHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/graphiti/context_hash.rb

Overview

graphiti-api/graphiti#134 recommended reading Graphiti.context from base_scope before current_action existed, so the old key keeps working for one major.

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



4
5
6
# File 'lib/graphiti/context_hash.rb', line 4

def [](key)
  super(deprecate_namespace(key))
end

#[]=(key, value) ⇒ Object



8
9
10
# File 'lib/graphiti/context_hash.rb', line 8

def []=(key, value)
  super(deprecate_namespace(key), value)
end