Skip to content

Commit

Permalink
Merge pull request #61 from ncoders/master
Browse files Browse the repository at this point in the history
Check if connection responds to #supports_extensions?
  • Loading branch information
danmcclain committed Feb 14, 2013
2 parents 7542ac3 + 140bc24 commit 1167b57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/postgres_ext/active_record/schema_dumper.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 1167b57

Please sign in to comment.