Sha256: 9806a7ba72312c109c24908a50fb68205589bc26de1f28941b4c24dc0d00dc22
Contents?: true
Size: 627 Bytes
Versions: 25
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module Decidim # This class holds the configuration for notification settings at component level. # # This manifest is a simple object that holds and stores current attributes # and their specific validators class NotificationSettingManifest include ActiveModel::Model include Decidim::AttributeObject::Model attribute :name, Symbol attribute :settings_area, Symbol attribute :default_value, Boolean, default: true validates :default_value, inclusion: { in: [true, false] } validates :settings_area, inclusion: { in: [:global, :administrators] } end end
Version data entries
25 entries across 25 versions & 1 rubygems