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

Version Path
decidim-core-0.29.1 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.4 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.9 lib/decidim/notification_setting_manifest.rb
decidim-core-0.29.0 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.3 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.8 lib/decidim/notification_setting_manifest.rb
decidim-core-0.29.0.rc4 lib/decidim/notification_setting_manifest.rb
decidim-core-0.29.0.rc3 lib/decidim/notification_setting_manifest.rb
decidim-core-0.29.0.rc2 lib/decidim/notification_setting_manifest.rb
decidim-core-0.29.0.rc1 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.2 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.7 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.1 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.6 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.0 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.5 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.0.rc5 lib/decidim/notification_setting_manifest.rb
decidim-core-0.28.0.rc4 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.4 lib/decidim/notification_setting_manifest.rb
decidim-core-0.27.3 lib/decidim/notification_setting_manifest.rb