Module: Arclight::EadFormatHelpers

Extended by:
ActiveSupport::Concern
Included in:
FieldConfigHelpers, ArclightHelper
Defined in:
app/helpers/arclight/ead_format_helpers.rb

Overview

A module to add EAD to HTML transformation rules for Arclight

Instance Method Summary collapse

Instance Method Details

#render_html_tags(args) ⇒ Object



9
10
11
12
13
14
15
16
# File 'app/helpers/arclight/ead_format_helpers.rb', line 9

def render_html_tags(args)
  values = Array(args[:value])
  values.map! do |value|
    transform_ead_to_html(value)
  end
  values.map! { |value| wrap_in_paragraph(value) } if values.count > 1
  safe_join(values.map(&:html_safe))
end