Skip to content
Browse files

Fix typo

  • Loading branch information...
1 parent 610958a commit 88e4ec6e3231db8036e2d10093bb5fcce060ad73 @rafaelfranca rafaelfranca committed Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -594,7 +594,7 @@ def disable_extension(name)
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

0 comments on commit 88e4ec6

Please sign in to comment.
Something went wrong with that request. Please try again.