Sha256: e54806940ed1cc557331e5b43d802a480cba56460512807282db8c39e100b0c0
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true class Subject < ApplicationRecord include Accession::Principal has_many :subject_roles has_many :roles, through: :subject_roles valhammer def permissions # This could be extended to gather permissions from # other data sources providing input to subject identity roles.joins(:permissions).pluck('permissions.value') end def functioning? # more than enabled? could inform functioning? # such as an administrative or AAF lock enabled? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aaf-gumboot-1.1.0 | spec/dummy/app/models/subject.rb |