diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sybase_adapter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb b/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb index 7e31756f2b..d9395defef 100644 --- a/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb @@ -5,12 +5,13 @@ # Based on code from Will Sobel (http://dev.rubyonrails.org/ticket/2030) require 'active_record/connection_adapters/abstract_adapter' -require 'sybsql' module ActiveRecord class Base # Establishes a connection to the database that's used by all Active Record objects def self.sybase_connection(config) # :nodoc: + require_library_or_gem 'sybsql' + config = config.symbolize_keys username = config[:username] ? config[:username].to_s : 'sa' |