Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created October 8, 2016 11:44
Show Gist options
  • Save zedtux/3a4654ac9f07b85fd6ed41f7f3f1e751 to your computer and use it in GitHub Desktop.
Save zedtux/3a4654ac9f07b85fd6ed41f7f3f1e751 to your computer and use it in GitHub Desktop.
Right model with a renamed has_many association
class Right
has_many :levels, :class_name => ‘RightLevel’, :foreign_key => ‘right_id’
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment