lib/model/dm/model.rb in extjs-mvc-0.2.0 vs lib/model/dm/model.rb in extjs-mvc-0.2.1

- old
+ new

@@ -83,9 +83,11 @@ field = {:name => col.name, :allowBlank => (col === pk) ? true : col.nullable?, :type => type} field[:dateFormat] = "c" if type === :date # <-- ugly hack for date field elsif assn = self.relationships[f] field = {:name => f, :allowBlank => true, :type => 'auto'} + else # property is a method? + field = {:name => f, :allowBlank => true, :type => 'auto'} end }, "idProperty" => pk.name } end