Permalink
Browse files

Merge pull request #61 from ncoders/master

Check if connection responds to #supports_extensions?
  • Loading branch information...
2 parents 7542ac3 + 140bc24 commit 1167b574ad8521e5c5c9a634bef053567153364f @danmcclain danmcclain committed Feb 14, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/postgres_ext/active_record/schema_dumper.rb
@@ -10,7 +10,8 @@ def self.valid_column_spec_keys
def dump(stream)
header(stream)
# added
- extensions(stream) if @connection.supports_extensions?
+ extensions(stream) if @connection.respond_to?(:supports_extensions?) &&
+ @connection.supports_extensions?
# /added
tables(stream)
trailer(stream)

0 comments on commit 1167b57

Please sign in to comment.