Sha256: 034812576765742b985c28ed63823724e8245367e998bea91f10935de26d97e9
Contents?: true
Size: 286 Bytes
Versions: 29
Compression:
Stored size: 286 Bytes
Contents
# frozen_string_literal: true class InviteRole < ApplicationRecord belongs_to :invite validates :name, presence: true, uniqueness: { scope: :invite_id }, inclusion: { in: proc { Role.roles.map(&:name) } } def to_s name.humanize end end
Version data entries
29 entries across 29 versions & 1 rubygems