lib/scaffolding_extensions/model/datamapper.rb
# The column type for the given table column, or nil if it isn't a table column
The column type for the given table column, or nil if it isn't a table column
The column type for the given table column or nil if it isn ' t a table column
def scaffold_table_column_type(c)
    column = self.properties[c]
    if column then
      if column.type == DataMapper::Property::Text
        :text
      else
        column.class.to_s.split("::").last.downcase.intern
      end
    else
      nil
    end
  end
def scaffold_table_column_type ( c ) column = self . properties [ c ] if column then if column . type == DataMapper :: Property :: Text :text else column . class . to_s . split ( "::" ) . last . downcase . intern end else nil end end
The column type for the given table column, or nil if it isn't a table column
The column type for the given table column or nil if it isn ' t a table column
c
<not_specific>