From 1a838ccda4a31bb023985f6c977e6bc3e238cda9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 25 Mar 2013 17:18:07 -0300 Subject: [PATCH] Fix typo --- .../lib/active_record/connection_adapters/postgresql/quoting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb index 635e60ad187da..6329733abc44c 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb @@ -103,7 +103,7 @@ def type_cast(value, column, array_member = false) PostgreSQLColumn.array_to_string(value, column, self) end when String - return super(value, column) unless 'bytea' == couln.sql_type + return super(value, column) unless 'bytea' == column.sql_type { :value => value, :format => 1 } when Hash case column.sql_type