ref: master
plugins/comment_classification/lib/comment_classification_plugin/comment_label_user.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 |
class CommentClassificationPlugin::CommentLabelUser < ApplicationRecord self.table_name = :comment_classification_plugin_comment_label_user belongs_to :profile belongs_to :comment belongs_to :label, :class_name => 'CommentClassificationPlugin::Label' attr_accessible :profile, :comment, :label validates_presence_of :profile validates_presence_of :comment validates_presence_of :label end |