extjs-extjs-mvc 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/active_record/model.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
data/lib/active_record/model.rb
CHANGED
@@ -59,7 +59,7 @@ module ExtJS
|
|
59
59
|
when :integer
|
60
60
|
type = :int
|
61
61
|
end
|
62
|
-
field = {:name => col.name, :allowBlank => col.null, :type => type}
|
62
|
+
field = {:name => col.name, :allowBlank => (col.primary) ? true : col.null, :type => type}
|
63
63
|
field[:dateFormat] = "c" if col.type === :datetime || col.type === :date # <-- ugly hack for date
|
64
64
|
field
|
65
65
|
},
|