Sha256: 4d5a5ca892954e04ace21ff0e80d7b67346d5cb70799bccb86f2048b13444455
Contents?: true
Size: 454 Bytes
Versions: 29
Compression:
Stored size: 454 Bytes
Contents
module Hyrax # Provide select options for the license (dcterms:rights) field class LicenseService < QaSelectService def initialize super('licenses') end def include_current_value(value, _index, render_options, html_options) unless value.blank? || active?(value) html_options[:class] << ' force-select' render_options += [[label(value), value]] end [render_options, html_options] end end end
Version data entries
29 entries across 29 versions & 2 rubygems