Module: Torque::PostgreSQL::Associations::Preloader::Association
- Defined in:
- lib/torque/postgresql/associations/preloader/association.rb
Instance Method Summary collapse
-
#run(preloader) ⇒ Object
For reflections connected through an array, make sure to properly decuple the list of ids and set them as associated with the owner.
Instance Method Details
#run(preloader) ⇒ Object
For reflections connected through an array, make sure to properly decuple the list of ids and set them as associated with the owner
11 12 13 14 |
# File 'lib/torque/postgresql/associations/preloader/association.rb', line 11 def run(preloader) return super unless connected_through_array? send("run_array_for_#{@reflection.macro}") end |