lib/mini_sql/coders.rb in mini_sql-0.1.1 vs lib/mini_sql/coders.rb in mini_sql-0.1.2

- old
+ new

@@ -3,7 +3,12 @@ class NumericCoder < PG::SimpleDecoder def decode(string, tuple = nil, field = nil) string.to_f end end + class IPAddrCoder < PG::SimpleDecoder + def decode(string, tuple = nil, field = nil) + IPAddr.new(string) + end + end end end