def format_cell_value_as_type(value, attribute)
      if value.is_a?(Time) or value.is_a?(Date)
        return ::I18n.l(value, :format => @options[:format] || TableBuilder.i18n_default_format_date)
      elsif TableBuilder.currency_columns.include?(attribute)
        return number_to_currency(value)
      elsif value.is_a?(TrueClass)
        return TableBuilder.default_boolean.first
      elsif value.is_a?(FalseClass)
        return TableBuilder.default_boolean.second
      end
      value
    end
def format_cell_value_as_type(value, attribute)
      if value.is_a?(Time) or value.is_a?(Date)
        return ::I18n.l(value, :format => @options[:format] || TableBuilder.i18n_default_format_date)
      elsif TableBuilder.currency_columns.include?(attribute)
        return number_to_currency(value)
      elsif value.is_a?(TrueClass)
        return TableBuilder.default_boolean.first
      elsif value.is_a?(FalseClass)
        return TableBuilder.default_boolean.second
      end
      value
    end
Format the value based on value's type