Ticket #392: nilclass_fix.diff
| File nilclass_fix.diff, 0.9 kB (added by lancecarls..@gmail.com, 11 months ago) |
|---|
-
a/lib/merb/orms/sequel/connection.rb
old new 29 29 require "sequel_model" 30 30 31 31 if File.exists?(config_file) 32 puts "#{Time.now.httpdate}: Connecting to the '#{config[: adapter]}' database '#{config[:hosts]}' ..."32 puts "#{Time.now.httpdate}: Connecting to the '#{config[:database]}' database on '#{config[:host]}' using '#{config[:adapter]}' ..." 33 33 connection = ::Sequel.connect(config_options(config)) 34 34 MERB_LOGGER.error("Connection Error: #{e}") unless connection 35 connection 35 36 else 36 37 copy_sample_config 37 38 puts "#{Time.now.httpdate}: No database.yml file found in #{MERB_ROOT}/config."
