Class: Interactor::Context
- Inherits:
-
Object
- Object
- Interactor::Context
- Defined in:
- lib/interactor/schema/context_extension.rb
Class Method Summary collapse
-
.build(context = {}) ⇒ Object
Overriding build method to continue with a Schema Context when one is found.
Class Method Details
.build(context = {}) ⇒ Object
Overriding build method to continue with a Schema Context when one is found
5 6 7 8 |
# 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 |