Sha256: 253666c8efafd7a15e704af174171e2cb4f48260d38eef60b441e7c551e4dc98
Contents?: true
Size: 368 Bytes
Versions: 42
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true module Thredded # Defines a moderation_state enum # Requires an integer moderation_state column on the including class. module ModerationState extend ActiveSupport::Concern included do enum moderation_state: %i[pending_moderation approved blocked] validates :moderation_state, presence: true end end end
Version data entries
42 entries across 42 versions & 2 rubygems