class UserTopicEntry < ActiveRecord::Base belongs_to :user belongs_to :topic belongs_to :entry acts_as_list :scope => "user_id = #{user_id} AND topic_id = #{topic_id}" end