cirandas.net

ref: master

plugins/comment_classification/lib/comment_classification_plugin/status.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class CommentClassificationPlugin::Status < ApplicationRecord

  belongs_to :owner, :polymorphic => true

  attr_accessible :name, :enabled

  validates_presence_of :name

  scope :enabled, -> { where enabled: true }

end