Module: CurationConcerns::RightsHelper

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



2
3
4
5
6
7
8
# File 'app/helpers/curation_concerns/rights_helper.rb', line 2

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