Skip to content

Instantly share code, notes, and snippets.

@radar
Created Jul 23, 2008
Embed
What would you like to do?
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