Skip to content

Instantly share code, notes, and snippets.

@codespectator
Created February 28, 2012 21:17
Show Gist options
  • Select an option

  • Save codespectator/1935220 to your computer and use it in GitHub Desktop.

Select an option

Save codespectator/1935220 to your computer and use it in GitHub Desktop.

Revisions

  1. James MacLeod created this gist Feb 28, 2012.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    class Exercise
    belongs_to :language_one, :class => '::LanguageCode', :foreign_key => 'lanaguage_one_id'
    belongs_to :language_two, :class => '::LanguageCode', :foregin_key => 'language_two_id'
    end

    class LauangeCode
    end