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

Version Path
curation_concerns-0.14.0.pre4 app/services/rights_service.rb
curation_concerns-0.14.0.pre3 app/services/rights_service.rb
curation_concerns-0.14.0.pre2 app/services/rights_service.rb
curation_concerns-0.14.0.pre1 app/services/rights_service.rb
curation_concerns-0.13.1 app/services/rights_service.rb
curation_concerns-0.13.0 app/services/rights_service.rb
curation_concerns-0.12.0 app/services/rights_service.rb
curation_concerns-0.12.0.pre9 app/services/rights_service.rb
curation_concerns-0.12.0.pre8 app/services/rights_service.rb
curation_concerns-0.12.0.pre7 app/services/rights_service.rb
curation_concerns-0.12.0.pre6 app/services/rights_service.rb
curation_concerns-0.12.0.pre5 app/services/rights_service.rb
curation_concerns-0.12.0.pre4 app/services/rights_service.rb
curation_concerns-0.12.0.pre3 app/services/rights_service.rb
curation_concerns-0.12.0.pre2 app/services/rights_service.rb
curation_concerns-0.12.0.pre1 app/services/rights_service.rb
curation_concerns-0.11.0 app/services/rights_service.rb
curation_concerns-0.11.0.rc1 app/services/rights_service.rb
curation_concerns-0.10.0 app/services/rights_service.rb
curation_concerns-0.9.0 app/services/rights_service.rb