lib/trestle/form/fields/range_field.rb in trestle-0.9.3 vs lib/trestle/form/fields/range_field.rb in trestle-0.9.4

- old
+ new

@@ -8,13 +8,11 @@ def custom? options[:custom] != false end - def normalize_options! - options.reverse_merge!(class: ["custom-range"]) if custom? - - super + def defaults + custom? ? super.merge(class: ["custom-range"]) : super end end end end end