diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2014-05-10 13:57:18 +0000 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2014-05-10 13:57:18 +0000 |
commit | 9d5bc3c24048543d071f2c813210afa937460f14 (patch) | |
tree | b310882d107443eddf606ba744948d9e2d774b86 /activerecord/lib/active_record/connection_adapters/postgresql | |
parent | ed56e596a0467390011bc9d56d462539776adac1 (diff) | |
parent | ffb9db0247084514adc73ae92dfe8d5a3033226b (diff) | |
download | rails-9d5bc3c24048543d071f2c813210afa937460f14.tar.gz rails-9d5bc3c24048543d071f2c813210afa937460f14.tar.bz2 rails-9d5bc3c24048543d071f2c813210afa937460f14.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/column.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/column.rb b/activerecord/lib/active_record/connection_adapters/postgresql/column.rb index 2cbcd5fd50..1d22b56964 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) |