Permalink
Browse files

Don't require the frontbase adapter until you need to

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
Marcel Molina
Marcel Molina committed Apr 27, 2006
1 parent f3ce397 commit 1eade4137a96a55ed699d49c18fe177224363e7d
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb
@@ -2,7 +2,6 @@
# svn://rubyforge.org/var/svn/frontbase-rails/trunk/ruby-frontbase
require 'active_record/connection_adapters/abstract_adapter'
-require 'frontbase'
FB_TRACE = false
@@ -31,7 +30,7 @@ def frontbase_connection(config) # :nodoc:
# Turn off colorization since it makes tail/less output difficult
self.colorize_logging = false
-
+ require 'frontbase'
connection = FBSQL_Connect.connect(host, port, database, username, password, dbpassword, session_name)
ConnectionAdapters::FrontBaseAdapter.new(connection, logger, [host, port, database, username, password, dbpassword, session_name], config)
end

0 comments on commit 1eade41

Please sign in to comment.