diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-09 16:49:26 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-09 16:49:26 -0300 |
commit | 9664661f7b8e916ab2cf3fee1b2d2d2f0b26ceeb (patch) | |
tree | cf3a8925d1776444195a85229e1479e51f9eb849 /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |
parent | 254efb712ac10fd8e165fb34bb459f4abd59b213 (diff) | |
parent | d24e6407a7f5d662cb52ed57efc4d8ee11758170 (diff) | |
download | rails-9664661f7b8e916ab2cf3fee1b2d2d2f0b26ceeb.tar.gz rails-9664661f7b8e916ab2cf3fee1b2d2d2f0b26ceeb.tar.bz2 rails-9664661f7b8e916ab2cf3fee1b2d2d2f0b26ceeb.zip |
Merge pull request #15592 from sgrif/sg-type-cast-from-database
Rename `type_cast` to `type_cast_from_database`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 283ca81f94..71b05cdbae 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -348,14 +348,14 @@ module ActiveRecord if supports_extensions? res = exec_query "SELECT EXISTS(SELECT * FROM pg_available_extensions WHERE name = '#{name}' AND installed_version IS NOT NULL) as enabled", 'SCHEMA' - res.column_types['enabled'].type_cast res.rows.first.first + res.column_types['enabled'].type_cast_from_database res.rows.first.first end end def extensions if supports_extensions? res = exec_query "SELECT extname from pg_extension", "SCHEMA" - res.rows.map { |r| res.column_types['extname'].type_cast r.first } + res.rows.map { |r| res.column_types['extname'].type_cast_from_database r.first } else super end |