Sha256: 751a3e4d4538fd2d17055b93d8b252ab93eabb91adcd123af6ec1085261248b8
Contents?: true
Size: 301 Bytes
Versions: 27
Compression:
Stored size: 301 Bytes
Contents
module RightsService mattr_accessor :authority self.authority = Qa::Authorities::Local.subauthority_for('rights') def self.select_options authority.all.map do |element| [element[:label], element[:id]] end end def self.label(id) authority.find(id).fetch('term') end end
Version data entries
27 entries across 27 versions & 1 rubygems