From 43fbdbae17744458d71262836b451d68427bd98d Mon Sep 17 00:00:00 2001 From: schneems Date: Wed, 7 May 2014 11:09:33 -0500 Subject: [ci skip] document type_cast_for_write --- .../lib/active_record/connection_adapters/postgresql/column.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activerecord/lib/active_record/connection_adapters/postgresql') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/column.rb b/activerecord/lib/active_record/connection_adapters/postgresql/column.rb index 2cbcd5fd50..3558a641e2 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/column.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/column.rb @@ -98,6 +98,9 @@ module ActiveRecord end end + # Casts a Ruby value to something appropriate for writing to Postgresql. + # see ActiveRecord::ConnectionAdapters::Class#type_cast_for_write + # see ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Type def type_cast_for_write(value) if @oid_type.respond_to?(:type_cast_for_write) @oid_type.type_cast_for_write(value) -- cgit v1.2.3 From cb6622f455343bb9eddefabc2386dc7858de2e53 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Thu, 8 May 2014 18:24:38 +0000 Subject: copy edits [ci skip] --- activerecord/lib/active_record/connection_adapters/postgresql/column.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/connection_adapters/postgresql') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/column.rb b/activerecord/lib/active_record/connection_adapters/postgresql/column.rb index 3558a641e2..1d22b56964 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/column.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/column.rb @@ -98,7 +98,7 @@ module ActiveRecord end end - # Casts a Ruby value to something appropriate for writing to Postgresql. + # Casts a Ruby value to something appropriate for writing to PostgreSQL. # see ActiveRecord::ConnectionAdapters::Class#type_cast_for_write # see ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Type def type_cast_for_write(value) -- cgit v1.2.3