Method: ROM::Relation::Composite#call
- Defined in:
- lib/rom/relation/composite.rb
#call(*args) ⇒ Loaded Also known as: []
Call the pipeline by passing results from left to right
Optional args are passed to the left object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rom/relation/composite.rb', line 20 def call(*args) relation = left.call(*args) response = right.call(relation) if response.is_a?(Loaded) response else relation.new(response) end end |