lib/trestle/form/fields/date_picker.rb in trestle-0.8.13 vs lib/trestle/form/fields/date_picker.rb in trestle-0.9.0
- old
+ new
@@ -1,6 +1,6 @@
module Trestle::Form::Fields::DatePicker
- def extract_options!
+ def normalize_options!
options[:prepend] ||= options.delete(:icon) { default_icon }
unless options[:disabled] || options[:readonly]
options.reverse_merge!(data: { picker: options.delete(:picker) { true }, allow_clear: true })
end