lib/avo/fields/date_field.rb in avo-2.9.1.pre3 vs lib/avo/fields/date_field.rb in avo-2.9.1.pre4

- old
+ new

@@ -1,19 +1,21 @@ module Avo module Fields class DateField < TextField attr_reader :first_day_of_week attr_reader :picker_format + attr_reader :disable_mobile attr_reader :format attr_reader :relative def initialize(id, **args, &block) super(id, **args, &block) @first_day_of_week = args[:first_day_of_week].present? ? args[:first_day_of_week].to_i : 0 @picker_format = args[:picker_format].present? ? args[:picker_format] : "Y-m-d" @format = args[:format].present? ? args[:format] : :long @relative = args[:relative].present? ? args[:relative] : false + @disable_mobile = args[:disable_mobile].present? ? args[:disable_mobile] : false end def formatted_value return if value.blank?