Created
October 8, 2016 11:45
-
-
Save zedtux/cac726767c1ceb5b0304beae5e7a1ea0 to your computer and use it in GitHub Desktop.
Using Right and RightLevel with the renamed has_many association
This file contains hidden or 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
right = Right.find(1) | |
level = right.levels.first | |
puts level.level |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment