class Interactor::Context

Public Class Methods

build(context = {}) click to toggle source

Overriding build method to continue with a Schema Context when one is found

# File lib/interactor/schema/context_extension.rb, line 5
def self.build(context = {})
  return context if context.is_a?(Interactor::Schema::Context)
  self === context ? context : new(context)
end