Method: DynamicFieldsets::Field#html_attribute_hash

Defined in:
app/models/dynamic_fieldsets/field.rb

#html_attribute_hashHash



105
106
107
108
109
# File 'app/models/dynamic_fieldsets/field.rb', line 105

def html_attribute_hash
  attrs = {}
  field_html_attributes.each{ |a| attrs.merge! a.attribute_name.to_sym => a.value } if !field_html_attributes.empty?
  return attrs
end