Sha256: 0181d6e3bce1dc1a39c596d9fd945ec3838bd1baf029085b01584903f79777ee

Contents?: true

Size: 308 Bytes

Versions: 23

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

#
# Base class for notification
#
class NotificationTemplate < Template
  #
  # Fields
  #
  field :draft, type: Mongoid::Boolean, default: true
  #
  # Relationships
  #
  has_many :notifications, dependent: :nullify
  #
  # Validations
  #
  validates_presence_of :draft
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
web47core-3.2.20 lib/app/models/notification_template.rb
web47core-3.2.19 lib/app/models/notification_template.rb
web47core-3.2.18 lib/app/models/notification_template.rb
web47core-3.2.17 lib/app/models/notification_template.rb
web47core-3.2.16 lib/app/models/notification_template.rb
web47core-3.2.15 lib/app/models/notification_template.rb
web47core-3.2.14 lib/app/models/notification_template.rb
web47core-3.2.13 lib/app/models/notification_template.rb
web47core-3.2.12 lib/app/models/notification_template.rb
web47core-3.2.9 lib/app/models/notification_template.rb
web47core-3.2.8 lib/app/models/notification_template.rb
web47core-3.2.7 lib/app/models/notification_template.rb
web47core-3.2.6 lib/app/models/notification_template.rb
web47core-3.2.5 lib/app/models/notification_template.rb
web47core-3.2.4 lib/app/models/notification_template.rb
web47core-3.2.3 lib/app/models/notification_template.rb
web47core-3.2.2 lib/app/models/notification_template.rb
web47core-3.0.6 lib/app/models/notification_template.rb
web47core-3.0.5 lib/app/models/notification_template.rb
web47core-3.0.4 lib/app/models/notification_template.rb