Sha256: 054e8f7a3ab1a59ea27b0016c50f14d7bf427f383e93df5ab4dfc864a02b40c5
Contents?: true
Size: 469 Bytes
Versions: 6
Compression:
Stored size: 469 Bytes
Contents
module Effective class Alert < ApplicationRecord self.table_name = (EffectivePages.alerts_table_name || :alerts).to_s log_changes if respond_to?(:log_changes) has_rich_text :body effective_resource do enabled :boolean timestamps end scope :deep, -> { with_rich_text_body } scope :enabled, -> { where(enabled: true) } validates :body, presence: true def to_s model_name.human end end end
Version data entries
6 entries across 6 versions & 1 rubygems