public
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobo.git
datetime fields gave errors when editing, since rails 2.1 changed default 
to ActiveSupport::TimeWithZone
Mathijs Kwik (author)
Mon Aug 25 09:49:29 -0700 2008
commit  b8a6c2527f7cc93121b6d832dd27b58c0a8d2bda
tree    00f2c427b7b18a9e2bec2ac3a0429ffd88ac05eb
parent  f36748b55d6b95e9031781572e07cf6f9aaafcd7
...
16
17
18
19
 
20
21
22
...
16
17
18
 
19
20
21
22
0
@@ -16,7 +16,7 @@ module HoboFields
0
   PLAIN_TYPES = {
0
     :boolean => Hobo::Boolean,
0
     :date => Date,
0
- :datetime => Time,
0
+ :datetime => (defined?(ActiveSupport::TimeWithZone) ? ActiveSupport::TimeWithZone : Time),
0
     :integer => Fixnum,
0
     :big_integer => BigDecimal,
0
     :decimal => BigDecimal,

Comments

    No one has commented yet.