Created
October 2, 2014 13:11
-
-
Save TrevorS/351eb66894ceb955aca6 to your computer and use it in GitHub Desktop.
Find all modems from a distribution strand (joining nested associations).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modem.joins( | |
network_access_point_port: | |
{ distribution_strand: | |
{ splitter_port: :splitter } } ).where('splitters.fiber_strand_id' => 121) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment