Module: InternalAttributesHelper

Defined in:
app/helpers/internal_attributes_helper.rb

Instance Method Summary collapse

Instance Method Details

#internal_attribute_tag(internal_attribute) ⇒ Object



3
4
5
6
7
# File 'app/helpers/internal_attributes_helper.rb', line 3

def internal_attribute_tag(internal_attribute)
  return nil if internal_attribute.nil?
  name = internal_attribute.predicate&.name
  "<b>#{name.present? ? name : ''}:</b>#{internal_attribute.value}"
end