Module: Vorpal::Driver::ArelQueryMethods::Methods
- Defined in:
- lib/vorpal/driver/postgresql.rb
Overview
Methods in this module will appear on any composable
Instance Attribute Summary collapse
-
#vorpal_aggregate_mapper ⇒ Object
writeonly
Sets the attribute vorpal_aggregate_mapper.
Instance Method Summary collapse
Instance Attribute Details
#vorpal_aggregate_mapper=(value) ⇒ Object (writeonly)
Sets the attribute vorpal_aggregate_mapper
165 166 167 |
# File 'lib/vorpal/driver/postgresql.rb', line 165 def vorpal_aggregate_mapper=(value) @vorpal_aggregate_mapper = value end |
Instance Method Details
#load_many ⇒ Object
168 169 170 171 |
# File 'lib/vorpal/driver/postgresql.rb', line 168 def load_many db_roots = self.to_a @vorpal_aggregate_mapper.load_many(db_roots) end |
#load_one ⇒ Object
174 175 176 177 |
# File 'lib/vorpal/driver/postgresql.rb', line 174 def load_one db_root = self.first @vorpal_aggregate_mapper.load_one(db_root) end |