Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created October 8, 2016 11:45
Show Gist options
  • Save zedtux/cac726767c1ceb5b0304beae5e7a1ea0 to your computer and use it in GitHub Desktop.
Save zedtux/cac726767c1ceb5b0304beae5e7a1ea0 to your computer and use it in GitHub Desktop.
Using Right and RightLevel with the renamed has_many association
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