Module: CurationConcerns::RightsHelper

Extended by:
Deprecation
Included in:
MainAppHelpers
Defined in:
app/helpers/curation_concerns/rights_helper.rb

Instance Method Summary collapse

Instance Method Details

#include_current_value(value, _index, render_options, html_options) ⇒ Object



5
6
7
8
9
10
11
# File 'app/helpers/curation_concerns/rights_helper.rb', line 5

def include_current_value(value, _index, render_options, html_options)
  unless value.blank? || RightsService.active?(value)
    html_options[:class] << ' force-select'
    render_options += [[RightsService.label(value), value]]
  end
  [render_options, html_options]
end