belongs_to :primary_status, :model => 'Status', :foreign_key => 'primary_status_id'
belongs_to :secondary_status, :model => 'Status', :foreign_key => 'secondary_status_id'
Created
February 12, 2015 02:53
-
-
Save oojikoo-gist/1e92947267d83c828f95 to your computer and use it in GitHub Desktop.
rails: custom association on a model
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment