Skip to content

Commit

Permalink
Suppress dumping connection details when create option is specified.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.ttiltd.com/svn/dev.rb/trunk/libraries/fb_adapter2@10567 e6efdd46-4312-0410-9032-dd8a18d5a4db
  • Loading branch information
brent committed Apr 14, 2011
1 parent 115872f commit 7a7fb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/fb_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def fb_connection(config) # :nodoc:
connection = db.connect
rescue
require_library_or_gem 'pp'
pp config
pp config unless config[:create]
connection = config[:create] ? db.create.connect : (raise ConnectionNotEstablished, "No Firebird connections established.")
end
ConnectionAdapters::FbAdapter.new(connection, logger, config)
Expand Down

0 comments on commit 7a7fb92

Please sign in to comment.