Skip to content

Instantly share code, notes, and snippets.

@radar
Created July 23, 2008 07:46
Show Gist options
  • Save radar/1593 to your computer and use it in GitHub Desktop.
Save radar/1593 to your computer and use it in GitHub Desktop.
class Rating < ActiveRecord::Base
belongs_to :thing, :polymorphic => true
end
class Comment < ActiveRecord::Base
has_many :ratings
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment