motion-prime/sections/form.rb in motion-prime-0.7.2 vs motion-prime/sections/form.rb in motion-prime-0.8.0

- old
+ new

@@ -208,9 +208,16 @@ section = load_cell_by_index(index, preload: false) section.container_height end class << self + def inherited(subclass) + super + subclass.fields_options = self.fields_options.try(:clone) + subclass.text_field_limits = self.text_field_limits.try(:clone) + subclass.text_view_limits = self.text_view_limits.try(:clone) + end + def field(name, options = {}, &block) options[:name] = name options[:type] ||= :string options[:block] = block self.fields_options ||= {} \ No newline at end of file