lib/yaks/mapper/config.rb in yaks-0.7.5 vs lib/yaks/mapper/config.rb in yaks-0.7.6
- old
+ new
@@ -20,10 +20,15 @@
config_method :has_one, create: HasOne, append_to: :associations
config_method :has_many, create: HasMany, append_to: :associations
config_method :attribute, create: Attribute, append_to: :attributes
config_method :attribute, create: Attribute, append_to: :attributes
config_method :control,
- create: StatefulBuilder.new(Control, Control.anima.attribute_names + [:field]),
- append_to: :controls
+ append_to: :controls,
+ create: StatefulBuilder.new(
+ Control,
+ Control.anima.attribute_names +
+ HTML5Forms::INPUT_TYPES +
+ [:field]
+ )
end
end
end