Permalink
Browse files

Allow date fields to handle Ranges. Take 2.

  • Loading branch information...
1 parent 80f4088 commit f1941cd14535130256ea52c96704965e32bcda1d Robert Jackson committed Aug 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/hippo/field.rb
View
@@ -121,8 +121,9 @@ def parse_date(value)
end
case value.class.to_s
- when "Date" then value
- when "Time" then value.to_date
+ when "Range" then value
+ when "Date" then value
+ when "Time" then value.to_date
when "String"
format = case value
when /\A\d{6}\z/ then '%y%m%d'

0 comments on commit f1941cd

Please sign in to comment.