1 2 3 4 5 6 7 8 9
class Array def to_hash Hash[*flatten] end def to_sql(formatter = Sql::SelectExpression.new) formatter.array self end end