Module: ActionTabler::JqueryDatatables
- Defined in:
- lib/action_tabler/jquery_datatables.rb
Class Method Summary collapse
Class Method Details
.column_type_for(col_type) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/action_tabler/jquery_datatables.rb', line 3 def self.column_type_for(col_type) case col_type when :datetime, :date, :time, :timestamp "date" when :integer, :float, :decimal, :binary "numeric" when :text "html" else "string" end end |