# File lib/model/active_record.rb, line 54 def extjs_type(col) type = col.type.to_s case type when "datetime", "date", "time", "timestamp" type = "date" when "text" type = "string" when "integer" type = "int" when "decimal" type = "float" end type end