Sha256: f975332fe2d2041ed9c62073275d1f45128d2baea0a97adacbc847c27b57dc7c
Contents?: true
Size: 351 Bytes
Versions: 19
Compression:
Stored size: 351 Bytes
Contents
module Renalware class Role < ApplicationRecord ROLES = %i(devops super_admin admin clinical read_only).freeze has_many :roles_users, dependent: :destroy has_many :users, through: :roles_users validates :name, uniqueness: true def self.fetch(ids) return none if Array.wrap(ids).empty? find(ids) end end end
Version data entries
19 entries across 19 versions & 1 rubygems