lib/h/h.rb in modalh-1.1.2 vs lib/h/h.rb in modalh-1.1.3

- old
+ new

@@ -111,9 +111,10 @@ raise ArgumentError, "Invalid integer #{txt}" unless /\A[+-]?\d+(?:\.0*)?\Z/.match(txt) txt.to_i end def date_to(value, options={}) + return options[:blank] || '' if value.nil? I18n.l(value, options) end def date_from(txt, options={}) options = number_format_options(options).merge(options)