lib/hobo_fields.rb in hobo_fields-1.3.0.pre27 vs lib/hobo_fields.rb in hobo_fields-1.3.0.pre28
- old
+ new
@@ -14,10 +14,10 @@
extend self
PLAIN_TYPES = {
:boolean => Hobo::Boolean,
:date => Date,
- :datetime => (defined?(ActiveSupport::TimeWithZone) ? ActiveSupport::TimeWithZone : Time),
+ :datetime => ActiveSupport::TimeWithZone,
:time => Time,
:integer => Integer,
:decimal => BigDecimal,
:float => Float,
:string => String