motion-prime/sections/form.rb in motion-prime-0.8.10 vs motion-prime/sections/form.rb in motion-prime-0.8.11

- old
+ new

@@ -78,9 +78,17 @@ def fields_hash fields.to_hash end + def field_values + values = {} + fields.each do |field_name, field| + values[field_name.to_sym] = field.value if field.input? + end + values + end + def register_elements_from_section(section) self.rendered_views ||= {} section.elements.values.each do |element| self.rendered_views[element.view] = {element: element, section: section} end \ No newline at end of file