status.rb 222 Bytes Edit Raw Blame History 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