Class: Castle::Context::Merge

Inherits:
Object
  • Object
show all
Defined in:
lib/castle/context/merge.rb

Class Method Summary collapse

Class Method Details

.call(initial_context, request_context) ⇒ Object



7
8
9
10
# File 'lib/castle/context/merge.rb', line 7

def call(initial_context, request_context)
  main_context = Castle::Utils::Clone.call(initial_context)
  Castle::Utils::Merge.call(main_context, request_context || {})
end