diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-29 11:53:40 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-29 11:53:40 -0200 |
commit | 88e4ec6e3231db8036e2d10093bb5fcce060ad73 (patch) | |
tree | 6e133562b99be04b17e6733dfb26e145dac794a9 /activerecord | |
parent | 610958a0c0f4d6b092608067f1ab93aefcc77945 (diff) | |
download | rails-88e4ec6e3231db8036e2d10093bb5fcce060ad73.tar.gz rails-88e4ec6e3231db8036e2d10093bb5fcce060ad73.tar.bz2 rails-88e4ec6e3231db8036e2d10093bb5fcce060ad73.zip |
Fix typo
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 9169ace9f7..4a49aa4a5a 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -594,7 +594,7 @@ module ActiveRecord end def extension_enabled?(name) - if supports_extensions + if supports_extensions? res = exec_query "SELECT EXISTS(SELECT * FROM pg_available_extensions WHERE name = '#{name}' AND installed_version IS NOT NULL)", 'SCHEMA' res.column_types['exists'].type_cast res.rows.first.first |